Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions examples/analytics.amp.html
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,25 @@
</script>
</amp-analytics>

<!-- Lotame tracking.
Please replace the value for "account" (12345)
with the correct Lotame Client ID.
-->
<amp-analytics type="lotame">
<script type="application/json">
{
"vars": {
"account": 12345
},
"extraUrlParams": {
"key1": "value1",
"key2": "value2"
}
}
</script>
</amp-analytics>
<!-- End Lotame example -->

<!-- Mediametrie tracking
serial is the account id (required)
level1 to 4 are page levels (optional)
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