Jump to content

statcounter code for Gallery light box view


Saurabh Jain

Recommended Posts

Posted

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?

Posted
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

image.thumb.png.70b493d75559cba63bac3b0ce748e6c9.pngimage.thumb.png.70b493d75559cba63bac3b0ce748e6c9.png

 

Posted

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 

image.thumb.png.28db7c0407370ef390857641332d5a73.png

 

 

 

Posted
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.

Posted

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 

Posted
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.

Posted
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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...