scarey1952
Forum Replies Created
-
Forum: Plugins
In reply to: [Ad King Pro] Google Analytics tracking not workingHi Ash,
I just tried out this new code and it looks like it’s working! I clicked on an advert and there were no JS errors showing up. I checked the GA stats and saw a click event showing up under Real Time–>Events. I didn’t see a click event under Behavior–>Events yet, but I can’t expect it to display instantly there. I’m sure it needs a little time to show up under Behavior.
If I upgrade to version 1.9.17, is there any danger of losing adverts data? We have a large number of adverts out there.
Thanks so much for you responsiveness and help. Much appreciated.
Steve
Forum: Plugins
In reply to: [Ad King Pro] Google Analytics tracking not workingAsh,
I just made the change you suggested and got the following syntax error:
SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data jquery.js:4
Forum: Plugins
In reply to: [Ad King Pro] Google Analytics tracking not workingHi Ash,
I turned on the Javascript debugger and console in my Firefox browser and clicked on an advert. The following error appeared in adkingpro-functions.js:
TypeError: $ is undefined
I can see this is a jquery error, so I viewed the source to see if any jquery libraries were being included in the <header> section and found the following 2 libraries defined above the GA Javascript that I inserted yesterday:
<script type=’text/javascript’ src=’https://wp.localheadlinenews.com/wp-includes/js/jquery/jquery.js?ver=1.11.0′></script>
<script type=’text/javascript’ src=’https://wp.localheadlinenews.com/wp-includes/js/jquery/jquery-migrate.min.js?ver=1.2.1′></script>
Do you know why this error is appearing and how I can fix it?
Thanks
Forum: Plugins
In reply to: [Ad King Pro] Google Analytics tracking not workingGood news! I filled in the Campaign and Banner Name fields for each of the active adverts and I still didn’t see any stats showing up in GA. Then I moved the GA Javascript code from the bottom of the <body> section to the <header> section and now it appears to be working. It was definitely worthwhile filling in the Campaign and Banner Name fields because this provides us with useful details like which specific ads are being displayed and the position on the page.
So far, I’m only seeing Impression events data, no Click events even though I purposely clicked on a few of the ads. I don’t know if the Click events are not being tracked for some reason even though the Ad King Pro Track Clicks option is checked, or if we just need to give it more time for the stats to show up on GA. Any thought about this?
Thanks for your help.
Forum: Plugins
In reply to: [Ad King Pro] Google Analytics tracking not workingOkay, I’ll give that a try.
Here is the GA code which is located toward the bottom of the <body> section, not the top like I mentioned before:
<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-59716263-1’, ‘auto’);
ga(‘send’, ‘pageview’);</script>
Forum: Plugins
In reply to: [Ad King Pro] Google Analytics tracking not workingHi Ash,
Yes, Sessions, Users, Pageviews, Bounce Rate, etc. are coming through.
Forum: Plugins
In reply to: [Ad King Pro] Google Analytics Tracking code bugGoogle Analytics tracking is not working for me. I am using Ad King Pro 1.9.15. I pasted the GA Javascript code to the top of the <body> section of each page. I’ve set the Ad King Pro Tracking Setting options to Track Impressions, Track Clicks, Enable Tracking via Google Analytics, selected Universal for the GA code type. Impression action name is set to Impression. Click action name is set to Click. I made these changes about 4 days ago. When I log into the GA account and go to Behavior–>Events and look under Actions, there is no data being reported.
We have a bunch of header and sidebar Adverts entered via text widgets that are showing up just fine, but no GA tracking data is showing up. I have left the Campaign (GA Category) and Banner Name (GA Label) fields blank for each Advert.
Am I missing some important step or doing something wrong?
Thanks
Forum: Plugins
In reply to: [Ad King Pro] Installation errorsI resolved these problems myself if anyone is interested. First, the Ad King Pro settings page was not coming up because it was expecting there to be a themes directory located at wp-content/plugins/adkingpro/includes/screens/themes. So I manually created this directory and the settings page magically came up. Why was this themes directory missing? Why wasn’t it added as part of the installation? Is this a bug? Has anyone else run into this problem?
The second problem I ran into was that the php escape short code “<?=” was being used in many places in the plugin code. This short code translates to “<?php echo” and requires php ini variable short_open_code to be set on in order to work. On our server, it was set to off so the Ad King Pro stats report was showing up as a mess. I was able to set the php ini variable on and this fixed that problem.
Steve