@flixwatchsupport If you check this guide you will notice sample Analytics tracking code for link click, very similar to your own setup. Looking at your site I can see you can use the #Netflix ID as the selector. You could place that code in a “Custom HTML” tag type in your existing container.
There is also the Analytics tab within the plugin you can use to insert Analytics tracking code if you prefer. You’ll find more on that below:
https://amp-wp.org/documentation/playbooks/analytics/
Hi James,
I had gone through those pages but GTM for AMP doesn’t have Custom HTML only Custom Image option is available. And it also doesn’t specify how to include it in Bounce Rate as well.
I understand that it is bit of tangential problem for the plugin and has more to do with AMP overall not specific to this plugin.
Regards
@flixwatchsupport Thanks for the patience. I was able to setup a button click event using GTM on an AMP standard module using the following with an AMP container:
1. Create a new Universal Analytics event tag
– Fill in yourTracking ID
(UA Number)
– Set the Track Type
to “Event”
– Set the Tag Type
to “Event”.
– Enter a Category
(ie. “Button Links”)
– Set the Action
to “Click”
– Set the Label
to the variable Page URL
2. Set the “Triggering”
– Give it a title
– In the CSS selector textbox input your selector (in your case #Netflix)
– Save the trigger and the tag
Hopefully that works for you after you publish the tag. If not unfortunately you will have to use the Tag Manager Help Center. As you mentioned it’s a specific issue, I understand there is not too much guidance online.