Skip to content

Commit

Permalink
♻️More attributes added in webengage amp-analytics vendor config (#27429
Browse files Browse the repository at this point in the history
)

* source url and viewer added in event attributes

* page url change to use sourceUrl variable

Co-authored-by: Ayush Gupta <ayush.gupta@webengage.com>
  • Loading branch information
ayushgupta29 and Ayush Gupta committed Mar 30, 2020
1 parent 8c4f107 commit b1bd1c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extensions/amp-analytics/0.1/test/vendor-requests.json
Expand Up @@ -490,8 +490,8 @@
"event": "https://tags-dmp.vpadn.com/et?t=_timestamp_&sdkn=j&sdkv=1.2.0&lk=!licence_key&en=UTF-8&ctid=_client_id(vpadn-ctid)_&ev=!ev_name&pl=!payload&is_amp=1&page_id=_page_view_id_"
},
"webengage": {
"base": "https://c.!region.webengage.com/amp?licenseCode=!licenseCode&luid=_client_id(we_luid)_&pageUrl=_canonical_url_&pageTitle=_title_&referrer=_document_referrer_&vh=_viewport_height_&vw=_viewport_width_&category=application&isAmp=1",
"wePageview": "https://c.!region.webengage.com/amp?licenseCode=!licenseCode&luid=_client_id(we_luid)_&pageUrl=_canonical_url_&pageTitle=_title_&referrer=_document_referrer_&vh=_viewport_height_&vw=_viewport_width_&category=application&eventName=Page Viewed&isAmp=1"
"base": "https://c.!region.webengage.com/amp?licenseCode=!licenseCode&luid=_client_id(we_luid)_&pageUrl=_source_url_&pageTitle=_title_&referrer=_document_referrer_&vh=_viewport_height_&vw=_viewport_width_&category=application&isAmp=1&amp-viewer=_viewer_",
"wePageview": "https://c.!region.webengage.com/amp?licenseCode=!licenseCode&luid=_client_id(we_luid)_&pageUrl=_source_url_&pageTitle=_title_&referrer=_document_referrer_&vh=_viewport_height_&vw=_viewport_width_&category=application&eventName=Page Viewed&isAmp=1&amp-viewer=_viewer_"
},
"webtrekk": {
"trackURL": "https://!trackDomain/!trackId/wt",
Expand Down
5 changes: 3 additions & 2 deletions extensions/amp-analytics/0.1/vendors/webengage.json
@@ -1,12 +1,13 @@
{
"requests": {
"base": "https://c.${region}.webengage.com/amp?licenseCode=${licenseCode}&luid=${clientId(we_luid)}&pageUrl=${canonicalUrl}&pageTitle=${title}&referrer=${documentReferrer}&vh=${viewportHeight}&vw=${viewportWidth}&category=application",
"base": "https://c.${region}.webengage.com/amp?licenseCode=${licenseCode}&luid=${clientId(we_luid)}&pageUrl=${sourceUrl}&pageTitle=${title}&referrer=${documentReferrer}&vh=${viewportHeight}&vw=${viewportWidth}&category=application",
"wePageview": {
"baseUrl": "${base}&eventName=Page Viewed"
}
},
"extraUrlParams": {
"isAmp": 1
"isAmp": 1,
"amp-viewer": "${viewer}"
},
"triggers": {
"wePageviewTrigger": {
Expand Down

0 comments on commit b1bd1c2

Please sign in to comment.