Forum Replies Created
-
AuthorPosts
-
August 27, 2017 at 1:44 am in reply to: How to edit Header in order to delete Google Analytics code duplicate #210804holybubleMember
I got you.
Thank you Victor.
I'll try open a ticket with Optmize Press, then.August 26, 2017 at 10:33 am in reply to: How to edit Header in order to delete Google Analytics code duplicate #210791holybubleMemberHello Victor, I'm asking you how to add the php conditional around the existing analytics code.
I have add the analytics code via Optmize Press.
<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','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-91737299-1', 'auto');
ga('send', 'pageview');</script>
August 26, 2017 at 6:44 am in reply to: How to edit Header in order to delete Google Analytics code duplicate #210786holybubleMemberVictor, I can't thank you enough for your prompt replies.
However, with Simple Hooks, there's no way to edit the Google Analytics in order put the script I mentioned before and after it.August 25, 2017 at 4:48 pm in reply to: How to edit Header in order to delete Google Analytics code duplicate #210770holybubleMemberHello Victor, thank you very much.
What about how to add the following string of code...How can I do that?
<?php if (!is_user_logged_in()) { ?>
ANALYTICS CODE
<?php endif; ?>holybubleMemberHello Victor, thank you for your reply.
I will try to uninstalled the plug in and see what happens.
It seems weird to me since, counting this plug-in I forgot about (thank you, by the way), I should have had 3 codes than... -
AuthorPosts