Google Analytics Code breaks Mobile Site When using HTTPS
-
Hi there,
I am at a loss, i’ve spent months trying to find a solution to this strange issue.
Site Details:
WP version: WordPress 4.8.2
Theme: Econo theme.
Host: SiteGround===============================
Issue: Google Analytics Code Breaking Mobile site running over HTTPS.– My client moved his website to SiteGround earlier this year. The site worked fine on both desktop and mobile.
– He had SiteGround convert his site to run over HTTPS.
– Now his site does not work on mobile (this video shows what happens on mobile: https://youtu.be/Dl-H8kdUIO8 )What I’ve Discoverd:
– I made sure all mix-content issues were fixed and confirmed that the SSL was correct.
– I deactivated plugins 1 by one and found that Monster Insights appeared to be the culprite.– I deactivated ALL plugins and reactived Monster Insights – the issue still persisted.
– The client wanted google analytics reporting, so i manually installed the google analytics code into the head of the wp header.php file.
– This led me to discovering that it is the actual Google Analytics code that is causing the issue on mobile
– I tried putting the code in the footer – this did not fix it.I can’t imagine where the conflict is or why it works fine on http but not on https IT does appear to be specific to the Econos Theme Unfortunately, the theme has been removed from Envato and thus no support – hence my desperate call for help :).
Any insights would be greatly appreciated.
Thanks,
TrishThe page I need help with: [log in to see the link]
The topic ‘Google Analytics Code breaks Mobile Site When using HTTPS’ is closed to new replies.

