I have developed an custom google analytic plugin for wordpress for my own use. I […]
Tag: google-analytics
google analytics custom plugin getting error invalid grant
$client = new Google_Client(); $client->setAuthConfigFile(plugin_dir_url( __FILE__ ) . ‘/client_secrets.json’); $client->setRedirectUri(‘urn:ietf:wg:oauth:2.0:oob’); $client->addScope(Google_Service_Analytics::ANALYTICS_READONLY); $client->setIncludeGrantedScopes(true); $client->setAccessType(‘offline’); $client->revokeToken(); $auth_url […]
Event goal not getting recorded in Google analytics
I have set up a form through contact form 7 in a website. I have […]
Add custom dimension to existing Google Analytics page view (using API)
I’ve had a tracking code set up on a WordPress site and have been passing […]
Adding google analytics ecommerce tracking to woocommerce
I need to add the google analytics ecommerce tracking to a wordpress site with woocommerce. […]
Tracking Disqus comments on Google Analytics
I’m using Disqus for my blog comments, and Google Analytics for tracking users. I have […]
Tracking custom event with Google Analytics by Yoast Plugin for WordPress
Hey guys can anyone help me out about how to do custom even tracking while […]
How to add a specific script to the head section of WordPress theme
I want to add different Google Analytics scripts (I prefer not using any plugin), for […]
How to track WordPress Author and Categories in Google Analytics in one piece of code?
Our NPO needs to be able to track author and category information from our WordPress […]
Why is PHP code in Google analytics code not properly executed?
I am using this code: <script> (function(i,s,o,g,r,a,m){i[‘GoogleAnalyticsObject’]=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,’script’,’//www.google-analytics.com/analytics.js’,’ga’); ga(‘create’, ‘UA-xxxxxxxx-xx’, ‘auto’); <?php […]
No More Posts Available.
No more pages to load.