Adding site parameters to analytics json
-
Hi,
We added the AMP plugin to my site, and try to setup AMP analytics.
We use a custom analytic solution, and need to send site variables to our analytics.
How could we parse site values into analytics data?
Ex:
{ "requests": { "pageview": "https://myanalytics.com/event?page_author=${article_authors}" }, "vars": { "article_author": "This is the author" # SEND AUTHOR NAME!!!!!!!! }, "triggers": { "trackPageview": { "on": "visible", "request": "pageview" } }, "transport": { "beacon": false, "xhrpost": false, "image": true } }Tried to use <?php echo get_the_author_firstname(); ?> but it not work.
Is there a way to do this using the analytics section?
Thanks
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Adding site parameters to analytics json’ is closed to new replies.