Page 1 of 1

Google Analytics code

Posted: 24 Jan 2010, 23:54
by rollingbolus
Hi there,

I'm not even sure that this is the right section of the forum in which to post this but......
I've just signed up to Google Analytics so I can get some visitors stats for my website. They've given me a bit of code that I've now pasted into the pages of my website, except for the Imagevue gallery page.

So how can I put the code into my Imagevue gallery?; it needs to be pasted in just before the 'body' tag at the bottom of the page, but I can find nowhere to do this.

thanks

Dominic

Posted: 26 Jan 2010, 01:35
by mjau-mjau
Go to admin -> settings -> seo.counters (at the bottom) ...

Here you can paste any code, including google analytics code. It will be appended to your gallery container file.

re: Google Analytics

Posted: 26 Jan 2010, 22:19
by rollingbolus
Hi mjau-mjau, thanks for the tip, but just to check, are you talking about Imagvue version 2? the newest one?
I've tried to follow your directions but when I log in as admin there's no 'settings' menu. I can only find 'settings' in 'config', and when I expand that 'settings' menu there's nothing that says 'seo.counter'. I've looked all around the other menus but I can find nothing else that says 'settings' and no 'seo.counter' anywhere. So I'm confused.

what am I doing wrong please?

Dominic

Posted: 27 Jan 2010, 02:52
by mjau-mjau
Yes, Imagevue X2 ... Sounds like you are using an older version though. It says "config" in the top menu and not "settings"? Perhaps you have a link?

You will need to upgrade your gallery to use this setting. If not, then you can add analytics code manually by editing the file imagevue/templates/index.gallery.phtml

Posted: 17 Apr 2010, 18:24
by omriamos
Hi,

for some reason after I save the settings page, my code turns from this:
Code
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-2897651-3");
pageTracker._trackPageview();
} catch(err) {}</script>
to this:
Code
script type=text/javascript
var gaJsHost = ((https: == document.location.protocol) ? https://ssl. : http://www.);
document.write(unescape(%3Cscript src=' + gaJsHost + google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E));
/script
script type=text/javascript
try {
var pageTracker = _gat._getTracker(UA-2897651-3);
pageTracker._trackPageview();
} catch(err) {}/script
So, all my "<" and ">" signs are removed...

Do you know why?

Posted: 21 Apr 2010, 07:44
by Nick
Just checked, everything works fine, are you sure you have the latest version? Could you provide a login to your Imagevue Control Panel?

Posted: 02 May 2010, 21:29
by omriamos
I have the latest version..
This might be a server issue, I will check with the hosting company.

pain, your check is actually active and using MY GoogleAnalytics ID, so I can see your website statistics under my account....

Please remove my code from your website :)
https://www.photo.gallery/soda/


thank you :)

Posted: 04 May 2010, 05:56
by Nick
Ooops sorry, at least it proves that this works.

Posted: 04 May 2010, 07:10
by omriamos
:)

yeah.. weird.
anyway I removed it from the configuration page and just inserted it manually to the template.

fake degree

Posted: 26 May 2010, 03:58
by derick2499
Just checked, everything works fine,

Posted: 27 May 2010, 02:38
by Nick
Could you please provide the Imagevue Control Panel password and link to your gallery, looks like it's something server-specific we could get fixed.
omriamos wrote::)

yeah.. weird.
anyway I removed it from the configuration page and just inserted it manually to the template.

Re: Google Analytics code

Posted: 21 Nov 2011, 22:22
by Nick

Re: Google Analytics code

Posted: 24 Nov 2011, 13:24
by azgeocacher
I am encountering this same parsing bug with the <> angle brackets stripped from the seo counter box in admin every time after clicking save.
I am trying to add the social thing to no avail.
Is there any workaround in this, i found where the code is stored in the config xml file,
but pasting the code directly between <counters> "code" </counters> does not work.
Does the code need some kind of formatting first?
I am copying the example code you supplied for the social thing, replacing imagevue with my info in the social code and dropping in between the counters tag

I checked and the server version of libXML is 2.6.32 which is an earlier version that appears shouldn't have the bracket bug
thanks

Re: Google Analytics code

Posted: 25 Nov 2011, 11:28
by Nick
You can simply edit iv-includes/templates/gallery.index.phtml and layout.phtml - those are main files for flash and html gallery and add counters and social thingy code there in the <div id="counters">

Just did it on the other site with this libXML problem.

Re: Google Analytics code

Posted: 25 Nov 2011, 17:52
by azgeocacher
Thank you Nick-
It works!