Search…

X3 Photo Gallery Support Forums

Search…
 
rollingbolus
Experienced
Topic Author
Posts: 26
Joined: 01 Mar 2009, 05:25

Google Analytics code

24 Jan 2010, 23:54

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13992
Joined: 30 Sep 2006, 03:37

26 Jan 2010, 01:35

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.
 
rollingbolus
Experienced
Topic Author
Posts: 26
Joined: 01 Mar 2009, 05:25

re: Google Analytics

26 Jan 2010, 22:19

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
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13992
Joined: 30 Sep 2006, 03:37

27 Jan 2010, 02:52

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
 
omriamos
Posts: 18
Joined: 24 Jul 2009, 11:45

17 Apr 2010, 18:24

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?
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

21 Apr 2010, 07:44

Just checked, everything works fine, are you sure you have the latest version? Could you provide a login to your Imagevue Control Panel?
firedev.com
 
omriamos
Posts: 18
Joined: 24 Jul 2009, 11:45

02 May 2010, 21:29

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 :)
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

04 May 2010, 05:56

Ooops sorry, at least it proves that this works.
firedev.com
 
omriamos
Posts: 18
Joined: 24 Jul 2009, 11:45

04 May 2010, 07:10

:)

yeah.. weird.
anyway I removed it from the configuration page and just inserted it manually to the template.
 
derick2499
Posts: 1
Joined: 26 May 2010, 03:55

fake degree

26 May 2010, 03:58

Just checked, everything works fine,
[url=http://diplomamakers.com]life experience degree[/url] - [url=http://diplomamakers.com]fake diploma[/url] - [url=http://diplomamakers.com]fake degree[/url]
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

27 May 2010, 02:38

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.
firedev.com
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Google Analytics code

21 Nov 2011, 22:22

firedev.com
 
azgeocacher
Posts: 12
Joined: 16 Nov 2009, 17:18

Re: Google Analytics code

24 Nov 2011, 13:24

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
 
User avatar
Nick
Imagevue Hitman
Posts: 2872
Joined: 02 May 2006, 09:13

Re: Google Analytics code

25 Nov 2011, 11:28

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.
firedev.com
 
azgeocacher
Posts: 12
Joined: 16 Nov 2009, 17:18

Re: Google Analytics code

25 Nov 2011, 17:52

Thank you Nick-
It works!