Saurabh Jain Posted May 25, 2018 Share Posted May 25, 2018 I used to have a statcounter code with google analytics but with new changes ... It was turning up at top of page... so I put the code in advertisement footer ... but however this does not turn up during gallery light box view where to place the code? Link to comment Share on other sites More sharing options...
Saurabh Jain Posted May 25, 2018 Author Share Posted May 25, 2018 can any 1 look into this Link to comment Share on other sites More sharing options...
Nathan Explosion Posted May 25, 2018 Share Posted May 25, 2018 I'm sure someone can....but you've provided nothing of use, to be honest. "I've got this code, which I haven't provided for you to see. Can someone tell me the best place to put it?" Show your code Link to comment Share on other sites More sharing options...
Saurabh Jain Posted May 25, 2018 Author Share Posted May 25, 2018 1 hour ago, Nathan Explosion said: I'm sure someone can....but you've provided nothing of use, to be honest. "I've got this code, which I haven't provided for you to see. Can someone tell me the best place to put it?" Show your code <div align="center"> <!-- Start of StatCounter Code for Default Guide --> <script type="text/javascript"> var sc_project=xxxxxxxx; var sc_invisible=0; var sc_security="baf9fbe9"; var sc_text=2; var scJsHost = (("https:" == document.location.protocol) ? "https://secure." : "http://www."); document.write("<sc"+"ript type='text/javascript' src='" + scJsHost+ "statcounter.com/counter/counter.js'></"+"script>"); </script> <noscript><div class="statcounter"><a title="web statistics" href="http://statcounter.com/" target="_blank"><img class="statcounter" src="//c.statcounter.com/11258398/0/baf9fbe9/0/" alt="web statistics"></a></div></noscript> <!-- End of StatCounter Code for Default Guide --> <a href="http://statcounter.com/p11258398/?guest=1">View Stats</a> </div> bottom of page view stats Link to comment Share on other sites More sharing options...
Nathan Explosion Posted May 25, 2018 Share Posted May 25, 2018 So what help do you actually need? You've got the code in place on your site already - and it's displaying where you show it in the screenshots. Do you want it somewhere else? If so, where do you want it to be? Link to comment Share on other sites More sharing options...
Saurabh Jain Posted May 25, 2018 Author Share Posted May 25, 2018 In Gallery light box it is not coming the page count is not increasing I tried placing in the advertisement - light box -= the page breaked changing images cannot be tracked the number of page views remains same Link to comment Share on other sites More sharing options...
simonle Posted May 25, 2018 Share Posted May 25, 2018 Just put it in your globalTemplate-file. ? Link to comment Share on other sites More sharing options...
Nathan Explosion Posted May 25, 2018 Share Posted May 25, 2018 14 minutes ago, simonle said: Just put it in your globalTemplate-file. ? Yep, in the absence of an answer to where you actually want it to be displayed (not where it isn't being displayed when you have it in place now) then just shove it at the bottom of the global template before the closing body tag. Link to comment Share on other sites More sharing options...
Saurabh Jain Posted May 26, 2018 Author Share Posted May 26, 2018 The concern is that Footer places advertisement does not work in Gallery lightbox view and If i place ad in lightbox view.. the page get break This may not be a right solution , as every Time I upgrade.... this template will not get upgrade Link to comment Share on other sites More sharing options...
Saurabh Jain Posted May 27, 2018 Author Share Posted May 27, 2018 putting the code before body tag still not coming in light box mode Link to comment Share on other sites More sharing options...
simonle Posted May 27, 2018 Share Posted May 27, 2018 52 minutes ago, Saurabh Jain said: putting the code before body tag still not coming in light box mode 1 Yeah, when the user browses the images in the lightbox they are actually not switching pages, just images. If you add the code in the lightbox view I would imagine that your traffic stats gets messed up. Link to comment Share on other sites More sharing options...
Saurabh Jain Posted May 27, 2018 Author Share Posted May 27, 2018 16 minutes ago, simonle said: Yeah, when the user browses the images in the lightbox they are actually not switching pages, just images. If you add the code in the lightbox view I would imagine that your traffic stats gets messed up. yes how to keep the count of number of page views.... url is changing when changing image Link to comment Share on other sites More sharing options...
Saurabh Jain Posted May 29, 2018 Author Share Posted May 29, 2018 when image changes -- it should reflect in an increment Link to comment Share on other sites More sharing options...
Saurabh Jain Posted June 2, 2018 Author Share Posted June 2, 2018 This plugin will solve the problem This will disable the lightbox https://invisioncommunity.com/files/file/9015-disable-gallery-images-lightbox/ Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.