Search…

X3 Photo Gallery Support Forums

Search…
 
iKremers
Experienced
Topic Author
Posts: 39
Joined: 22 Sep 2008, 06:19

Google Analytics

22 May 2011, 08:03

It's been driving me insane for quit a while now. I enabled swfaddress in the gallery options and placed the Google Analytics code inside the SEO part of the admin but Analytics still count the gallery as one page. As a result I cannot see how many people clicked a specific photo which is what I want to do.

Any suggestion on what I have to do to correct it? This is the code I use:

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'my_code']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>

I use the latest 2.7 beta. It hasn't been working for a while now (2.6 and 2.5 didn't work either). I want to do more with marketing so I need this data.
[url]http://www.jornkremers.com[/url]
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14008
Joined: 30 Sep 2006, 03:37

Re: Google Analytics

22 May 2011, 10:29

Strictly speaking, Imagevue is only a single page ... However, the SWFAddress javascript module has some enhancements so that internal links are reported to Google Analytics. So the important questions would be: 1) Do you have SWFAddress enabled in your gallery? 2) Are you using an updated version of swfaddress and Imagevue?
 
iKremers
Experienced
Topic Author
Posts: 39
Joined: 22 Sep 2008, 06:19

Re: Google Analytics

22 May 2011, 10:52

Yes, SFWaddress is enabled. I don't know which version of SWFaddress I'm running, I have the latest 2.7 beta installed. I didn't change any module by hand, uploaded eveything from the 2.7 download.

Thing is, I remember it worked a couple of months ago... No idea when it stopped working.
[url]http://www.jornkremers.com[/url]
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14008
Joined: 30 Sep 2006, 03:37

Re: Google Analytics

23 May 2011, 02:13

To be honest, I don't have much experience with this, and it seems like Google is not reporting analytics for our #subpages either. I need to set up a separate analytics, because right now, it is mixing with another one we have. Anyone else have any experience with Analytics on the Imagevue gallery?
 
User avatar
Martin
Experienced
Posts: 651
Joined: 30 Jan 2011, 23:24

Re: Google Analytics

23 May 2011, 07:55

mjau-mjau wrote:Anyone else have any experience with Analytics on the Imagevue gallery?
With me it is only showing index.php and the html-pages (the ones starting with /index.php/?.....)
I never saw the pages of flash... I've got SFWaddress enabled
 
iKremers
Experienced
Topic Author
Posts: 39
Joined: 22 Sep 2008, 06:19

Re: Google Analytics

23 May 2011, 09:44

I know a little bit about developing so I also know how difficult Flash is when it comes to stuff like this (and SEO). The fotomoto dashboard shows me the total number of views for every photo but it would be helpful to have all of this in one place.

But if it proofs impossible, then so be it ;) Still prefer a flash gallery over HTML every time.
[url]http://www.jornkremers.com[/url]
 
MetAtroN
Experienced
Posts: 29
Joined: 26 Feb 2009, 05:38

Re: Google Analytics

13 Jun 2011, 11:36

I've enabled swfaddress in SEO options, pasted my code, forced my brother to visit my gallery and I got a hit. But only showing the main gallery catalogue, not the precise things he was watching. Looks like something is not working quite as expected.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14008
Joined: 30 Sep 2006, 03:37

Re: Google Analytics

14 Jun 2011, 04:58

Hmm ... I wonder if it could be something with the new google javascript, or I am not sure. There is certainly nothing in the Imagevue code itself that we can do to change how SWFAddress interacts with Analytics. The word was that it "should just work", although I never actually tested it myself with analytics deep-linking.

I did some research, and it seems there are some improved methods for integration with Google Analytics, without having to rely on SWFAddress:
http://www.google.com/support/googleana ... opic=11006

I will be looking into this for next release ...
 
MetAtroN
Experienced
Posts: 29
Joined: 26 Feb 2009, 05:38

Re: Google Analytics

14 Jun 2011, 05:32

I've found another web analytics service - it's called Piwik and can be found at http://piwik.org/ It's open-source and free to use. I'm gonna try them too and let you know of the results.

EDIT:
Seems like that service mentioned above is working just fine :) I have one hit, and logs specify what file was viewed :) Could you plese visit me few times so I could test the service better?

One thing, I don't know, but it might be important that this analytics software is provied by company which also hosts my website. But as Piwik is free you probably might as well install it on your own server.
 
iKremers
Experienced
Topic Author
Posts: 39
Joined: 22 Sep 2008, 06:19

Re: Google Analytics

16 Jun 2011, 04:26

Hmm, I might give it a try. I use a twitter account where I post direct links to new photos, and I don't think these visits are counted at all... because the visitor goes directly to that page and not through the starting page. Which kinda makes having Google analytics useless.
[url]http://www.jornkremers.com[/url]
 
User avatar
mjau-mjau
X3 Wizard
Posts: 14008
Joined: 30 Sep 2006, 03:37

Re: Google Analytics

16 Jun 2011, 05:20

Well, as I mentioned in my previous post, we have discovered a way to connect to Google Analytics without having to depend on SWFAddress, and we can add in-depth gallery stats by using a javascript API call. Expect this for Imagevue 2.8:
http://www.google.com/support/googleana ... opic=11006

Piwik? Looks interesting, although I did a search and did not find any information about this supporting SWFAddress. This would be the only way it could be logging separate Imagevue pages. Are you sure its not reporting from the HTML gallery? It could be hooking on to changes in the URL from SWFAddress of course ...
 
iKremers
Experienced
Topic Author
Posts: 39
Joined: 22 Sep 2008, 06:19

Re: Google Analytics

16 Jun 2011, 07:17

That would be great :) Marketing is very important in today's photography, but without stats I don't know what's going on.
[url]http://www.jornkremers.com[/url]
 
MetAtroN
Experienced
Posts: 29
Joined: 26 Feb 2009, 05:38

Re: Google Analytics

16 Jun 2011, 13:56

Can't wait for the next update then ;)

Piwik is less complex than google analytics and lacks some functions.

I got a hit originating from this forum, someone from Holland, using MacOS and Safari ;) But there is no information about what was viewed, only the main address. Interesting that google didn't catch that hit, maybe it will be shown later.
 
iKremers
Experienced
Topic Author
Posts: 39
Joined: 22 Sep 2008, 06:19

Re: Google Analytics

17 Jun 2011, 04:35

That was me :P Wanted to see if it showed up, guess not. Clicked 2 or 3 images in flash gallery.
[url]http://www.jornkremers.com[/url]
 
MetAtroN
Experienced
Posts: 29
Joined: 26 Feb 2009, 05:38

Re: Google Analytics

17 Jun 2011, 11:58

No id didn't :( only the hit on domain. I don't know if it matters, but know I have domain 'jakub-kluba.com' which redirects to the accctual hosting provider 'metatron.ayz.pl'. Maybe that has something to do with piwik not showing the files viewed. Whatever is the case something is messed up :/ I hope the 2.8 update will make the things easier for us ;)

EDIT:
I've slightly changed the tracking code. If you could be so nice and hit me few more times ;) So I could know if it works or not ;)

EDIT:
Someone has been checking me out, but this time Piwik got me some interesting results, as you can see on the attached images. each folder ison represents visited place, so it wasnt just domain hit, piwik registered all viewed files and folders. Second attachement shows what exactly has been viewed.

I've also checked google and I was suprised to see the hits too (but thats from the day before - saturday 18th, if I understand correctly google shows the hits from the previous day, not the real time like piwik)

It seems like the changed code is working. This is what I have pasted in the SEO section of gallery:
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">
var pageTracker = _gat._getTracker("UA-xxxxxx-xx");
pageTracker._initData();
</script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/swfaddress.js?tracker=pageTracker._trackPageview"></script>
Of course you have to replace the "UA-xxxxxx-xx" with your own ID. Funny thing though, in the analytics settings, where you get the tracking code google tells me that tracking is not installed and the date of the last check is "1969-12-31 16:00:00 PST" :]
Attachments
Capture2.JPG
Capture2.JPG (84.26 KiB) Viewed 8678 times
Capture1.JPG
Capture1.JPG (66.97 KiB) Viewed 8678 times
Capture.JPG
Capture.JPG (13.8 KiB) Viewed 8678 times