Skip to content

Commit

Permalink
Ibeat support for new param for content exclusion (#39593)
Browse files Browse the repository at this point in the history
* added new params for ibeat analytics

* Added new input parameter vct for IbeatAnalytics tag

* Restored newline as per code review comment

* Added new property support for content exclusion
  • Loading branch information
denmark-admin authored Nov 9, 2023
1 parent 034dc49 commit 2659ea7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion examples/analytics-vendors.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -2048,7 +2048,8 @@
"sec":"news",
"tgs":"modi,parliament",
"pc":"loggedin",
"vct":"1"
"vct":"1",
"xcld":"1001"
}
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions extensions/amp-analytics/0.1/test/vendor-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@
},
"ibeatanalytics": {
"host": "https://api.ibeat-analytics.com",
"track": "https://api.ibeat-analytics.com/ping-amp?url=_source_url_&sid=_client_id(_iibeat_session)_&ua=_user_agent_&ref=_document_referrer_&at=_incremental_engaged_time_&tt=!totalTime&pid=_page_view_id_&d=!d&dn=_source_hostname_&ct=!ct&pt=!pt&hid=!hid&au=!au&ag=!ag&aid=!aid&cn=_canonical_url_&pot=!timerStart&rct=1&id=!id&sec=!sec&tgs=!tgs&pc=!pc&vct=!vct"
"track": "https://api.ibeat-analytics.com/ping-amp?url=_source_url_&sid=_client_id(_iibeat_session)_&ua=_user_agent_&ref=_document_referrer_&at=_incremental_engaged_time_&tt=!totalTime&pid=_page_view_id_&d=!d&dn=_source_hostname_&ct=!ct&pt=!pt&hid=!hid&au=!au&ag=!ag&aid=!aid&cn=_canonical_url_&pot=!timerStart&rct=1&id=!id&sec=!sec&tgs=!tgs&pc=!pc&vct=!vct&xcld=!xcld"
},
"infonline": {
"pageview": "!url?st=!st&sv=ke&ap=1&co=!co&cp=!cp&ps=!ps&act=_consent_string_&acs=_if(_equals(_consent_state_%2Csufficient)_%2C1)__if(_equals(_consent_state_%2Cinsufficient)_%2C0)__if(_equals(_consent_state_%2C)_%2C-1)_&host=_canonical_host_&path=_canonical_path_&type=pageview",
Expand Down Expand Up @@ -618,4 +618,4 @@
"mediaPosition": "https://!trackDomain/!trackId/wt?p=440,_title_,1,_screen_width_x_screen_height_,_screen_color_depth_,1,,_document_referrer_,_viewport_width_x_viewport_height_,0&tz=_timezone_&eid=_client_id(amp-wt3-eid)_&la=_browser_language_&mi=!id&mk=pos&mt1=!currentTime&mt2=!duration&&pu=_source_url_&eor=1&x=!playedTotal",
"mediaEnded": "https://!trackDomain/!trackId/wt?p=440,_title_,1,_screen_width_x_screen_height_,_screen_color_depth_,1,,_document_referrer_,_viewport_width_x_viewport_height_,0&tz=_timezone_&eid=_client_id(amp-wt3-eid)_&la=_browser_language_&mi=!id&mk=eof&mt1=!currentTime&mt2=!duration&&pu=_source_url_&eor=1&x=!playedTotal"
}
}
}
4 changes: 2 additions & 2 deletions extensions/amp-analytics/0.1/vendors/ibeatanalytics.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"requests": {
"host": "https://api.ibeat-analytics.com",
"track": "${host}/ping-amp?url=${sourceUrl}&sid=${clientId(_iibeat_session)}&ua=${userAgent}&ref=${documentReferrer}&at=${incrementalEngagedTime}&tt=${totalTime}&pid=${pageViewId}&d=${d}&dn=${sourceHostname}&ct=${ct}&pt=${pt}&hid=${hid}&au=${au}&ag=${ag}&aid=${aid}&cn=${canonicalUrl}&pot=${timerStart}&rct=${requestCount}&id=${id}&sec=${sec}&tgs=${tgs}&pc=${pc}&vct=${vct}"
"track": "${host}/ping-amp?url=${sourceUrl}&sid=${clientId(_iibeat_session)}&ua=${userAgent}&ref=${documentReferrer}&at=${incrementalEngagedTime}&tt=${totalTime}&pid=${pageViewId}&d=${d}&dn=${sourceHostname}&ct=${ct}&pt=${pt}&hid=${hid}&au=${au}&ag=${ag}&aid=${aid}&cn=${canonicalUrl}&pot=${timerStart}&rct=${requestCount}&id=${id}&sec=${sec}&tgs=${tgs}&pc=${pc}&vct=${vct}&xcld=${xcld}"
},
"triggers": {
"trackInterval": {
Expand All @@ -13,4 +13,4 @@
"request": "track"
}
}
}
}

0 comments on commit 2659ea7

Please sign in to comment.