I'm trying to use the googleanalytics plugin.
But I must have missed something in the config...
Line 15 of the script.js file : document.body.appendChild(script);
gives me the error in the console : Uncaught TypeError: Cannot read property 'appendChild' of null
Ideally it would be nice to have PHP and JavaScript files auto-formatted to meet whatever standards their respective communities agree upon. This should also help make the code a little easier to maintain going forward.
Todo:
Install php-cs-fixer and run it against the current codebase for PHP
Install js-beautify and run it against the current codebase for JavaScript
There is an e.preventDefault in the OutboundLinks Jquery function that makes the link open in the same window in place of a new tab if the target attribute is set to _blank
I don't know why it's their. When I delete it, it's working as expected.
I'm seeing zero data on Google Analytics from my site. I used to see plenty of data. The plugin configuration has the correct Google UA ID number. My dashboard displays the following notification:
"Property [site name] is not receiving hits. Either your site is not receiving any sessions or it is not tagged correctly.
"Google Tag Assistant Recordings can help you ensure that your site is tagged correctly."