AMP: Add Gemius analytics code

Posted in: Newspaper
Post count: 23

Where I add Gemius statistics code for the AMP page

This is the code:
<amp-analytics type=”gemius”>
<script type=”application/json”>
{
“vars”: {
“prefix”: “XXXXX”,
“identifier”: “XXXXXXXXX”
}
}
</script>
</amp-analytics>

Post count: 23312

Hello,

Please check here -> https://www.screencast.com/t/NBWuYleTClx

Thanks!

Post count: 23

Hello,

Before I wrote, I checked in there, but when I entered something different than that:
{
“vars”:{
“account”:”XXXXXXX”
},
“triggers”:{
“trackPageview”:{
“on”:”visible”,
“request”:”pageview”
}
}
}

And everything disappears. The contents of this field do not appear in the source code if there is any other content.

Post count: 23312

Hello kal,

As longs as you enter the code as suggested you will do not encounter any problems. The results will take a while until it will be indexed by the Google.

Thanks for your understanding!

Post count: 23

Hello,

Did you test it? Add the codе:

<amp-analytics type=”gemius”>
<script type=”application/json”>
{
“vars”: {
“prefix”: “XXXXX”,
“identifier”: “XXXXXXXXX”
}
}
</script>
</amp-analytics>

Save and see view-source on any /amp page.

Post count: 20685
Post count: 23

You can not understand me clearly… With the google analytics code works, but I’m trying to put a code on another system:
<AMP-ANALYTICS TYPE=”GEMIUS”>
<SCRIPT TYPE=”APPLICATION/JSON”>
{
“VARS”: {
“PREFIX”: “XXXXX”,
“IDENTIFIER”: “XXXXXXXXX”
}
}
</SCRIPT>
</AMP-ANALYTICS>

and when that code is placed there does not appear in view-source code on page.

Post count: 20685

It will not appear unless entered as mentioned, that is the current functionality. The type is added automatically by the plugin
https://www.screencast.com/t/5KOC0ZnTjQ
You could make the modification in the mentioned location
https://www.screencast.com/t/9q6wp6uS

Post count: 23

Anyway, I added it in html-end.php, thanks

Post count: 1

thx kal

Viewing 10 posts - 1 through 10 (of 10 total)
You must be logged in to reply to this topic.