Skip to content

Commit

Permalink
Added template for Adobe Analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Aitchison committed Feb 12, 2016
1 parent e9a7469 commit c31062f
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions extensions/amp-analytics/0.1/vendors.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,5 +233,32 @@ export const ANALYTICS_CONFIG = {
'xhrpost': false,
'image': true
}
},

'adobeanalytics': {
'vars': {
'pageName': 'TITLE',
'host': '',
'reportSuites': '',
'linkType': 'o',
'linkUrl': '',
'linkName': '',
},
'requests': {
'requestPath': '/b/ss/${reportSuites}/0/amp-1.0/s${random}',
'basePrefix': 'vid=${clientId(amp_id)}' +
'&ndh=0' +
'&ce=${documentCharset}' +
'&pageName=${pageName}' +
'&g=${ampdocUrl}' +
'&r=${documentReferrer}' +
'&bh=${availableScreenHeight}' +
'&bw=${availableScreenWidth}' +
'&c=${screenColorDepth}' +
'&j=amp' +
'&s=${screenWidth}x${screenHeight}',
'pageview': 'https://${host}${requestPath}?${basePrefix}',
'click': 'https://${host}${requestPath}?${basePrefix}&pe=lnk_${linkType}&pev1=${linkUrl}&pev2=${linkName}',
}
}
};

0 comments on commit c31062f

Please sign in to comment.