Skip to content

Commit

Permalink
Lotame add vendor
Browse files Browse the repository at this point in the history
resolving conflicts

Added example for Lotame analytics.

Updated the Lotame bcp url to use the proper new format

Added trailing commas because that is the desired format.

Added test to vendor-requests

Updated the Lotame example to use more descriptive values

Removed extraneous space
  • Loading branch information
Tonsil authored and avimehta committed May 9, 2016
1 parent 401a0ea commit 2087f87
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
21 changes: 21 additions & 0 deletions examples/analytics.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,27 @@
</script>
</amp-analytics>

<!-- Lotame tracking.
Please replace the value for "account" (12345)
with the correct Lotame Client ID.
The extraUrlParams are provided as an example,
the correct values are case-specific.
-->
<amp-analytics type="lotame">
<script type="application/json">
{
"vars": {
"account": 12345
},
"extraUrlParams": {
"int": "sports",
"gen": "m"
}
}
</script>
</amp-analytics>
<!-- End Lotame example -->

<!-- Mediametrie tracking
serial is the account id (required)
level1 to 4 are page levels (optional)
Expand Down
3 changes: 3 additions & 0 deletions extensions/amp-analytics/0.1/test/vendor-requests.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"social": "https://www.google-analytics.com/collect?v=1&_v=a0&aip=true&_s=1&dt=_title_&sr=_screen_width_x_screen_height_&_utmht=_timestamp_&jid=&cid=_client_id_&tid=$account&dl=$documentLocation&dr=_document_referrer_&sd=_screen_color_depth_&ul=_browser_language_&de=_document_charset_&t=social&sa=$socialAction&sn=$socialNetwork&st=$socialTarget&a=_page_view_id_&z=_random_",
"timing": "https://www.google-analytics.com/collect?v=1&_v=a0&aip=true&_s=1&dt=_title_&sr=_screen_width_x_screen_height_&_utmht=_timestamp_&jid=&cid=_client_id_&tid=$account&dl=$documentLocation&dr=_document_referrer_&sd=_screen_color_depth_&ul=_browser_language_&de=_document_charset_&t=timing&plt=_page_load_time_&dns=_domain_lookup_time_&tcp=_tcp_connect_time_&rrt=_redirect_time_&srt=_server_response_time_&pdt=_page_download_time_&clt=_content_load_time_&dit=_dom_interactive_time_&a=_page_view_id_&z=_random_"
},
"lotame": {
"pageview": "https://bcp.crwdcntrl.net/amp?c=$account&pv=y"
},
"krux": {
"beaconHost": "https://beacon.krxd.net",
"timing": "t_navigation_type=0&t_dns=_domain_lookup_time_&t_tcp=_tcp_connect_time_&t_http_request=_server_response_time_&t_http_response=_page_download_time_&t_content_ready=_content_load_time_&t_window_load=_page_load_time_&t_redirect=_redirect_time_",
Expand Down
17 changes: 17 additions & 0 deletions extensions/amp-analytics/0.1/vendors.js
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,23 @@ export const ANALYTICS_CONFIG = {
},
},

'lotame': {
'requests': {
'pageview': 'https://bcp.crwdcntrl.net/amp?c=${account}&pv=y',
},
'triggers': {
'track pageview': {
'on': 'visible',
'request': 'pageview',
},
},
'transport': {
'beacon': false,
'xhrpost': false,
'image': true,
},
},

'mediametrie': {
'requests': {
'host': 'https://prof.estat.com/m/web',
Expand Down
6 changes: 6 additions & 0 deletions extensions/amp-analytics/amp-analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ Type attribute value: `krux`

Adds support for Krux. Configuration details can be found at [help.krux.com](https://konsole.zendesk.com/hc/en-us/articles/216596608).

### Lotame

Type attribute value: `lotame`

Adds support for Lotame. More information and configuration details can be found at [mylotame.force.com](https://mylotame.force.com/s/article/Google-AMP).

### Médiamétrie

Type attribute value: `mediametrie`
Expand Down

0 comments on commit 2087f87

Please sign in to comment.