Google Analytics

Creating and modifying plugins.
Post Reply
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Google Analytics

Post by One Eye Pied »

Hi there.

I install the Google analytics plugin on my blog (v1.2.2), and I activate download and link tracking.
But after 10 days I haven't any result on GA.

Any idea about what is wrong ?
My website :
http://blog.jeuxdepied.org

Thanx !

One Eye Pied
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Google Analytics

Post by kleinerChemiker »

Are you sure, you are useing the right account number because everything looks ok.
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Re: Google Analytics

Post by One Eye Pied »

Yes, I use the right account number : all stats seems working, except download and link tracking.

I think I got a hint, but I'm not sure it leads to the answer :
I migrate my blog from "http://one.eye.pied.free.fr/blog" to "http://blog.jeuxdepied.org" a few month ago. So, in GA my account is named "http://one.eye.pied.free.fr/blog" with the account number after it, but my profile is named "http://blog.jeuxdepied.org".

Is that the problem can come from there ?
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Google Analytics

Post by kleinerChemiker »

The plugin needs a little update. I think, i will do it this evening.

memo to myself: http://www.google.com/support/forum/p/G ... 0592&hl=en
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Re: Google Analytics

Post by One Eye Pied »

Thanx a lot !
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Google Analytics

Post by kleinerChemiker »

Fixed, at least I hope so. I'll test it over the weekend and if it's working, I send it to Garvin for Spartacus.
Attachments
serendipity_event_google_analytics.rar
(3.48 KiB) Downloaded 360 times
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Re: Google Analytics

Post by One Eye Pied »

I'll try it to.
I must "re-save" all my old entries ?
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Re: Google Analytics

Post by One Eye Pied »

Forget my last message : I forget i could regenrate the cache :roll:
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Re: Google Analytics

Post by One Eye Pied »

It seems it work : I got one result in ga for an extlink today.

But :
Some download link were detect like extlink :

Code: Select all

<a onclick="_gaq.push(['_trackPageview', '/extlink//uploads/podcasts/OEC02_mix.mp3']);"  href="http://blog.jeuxdepied.org/uploads/podcasts/OEC02_mix.mp3">mp3</a>
These link is generate by the "easy podcast plugin" that I have lightly modified.
In my memory those links were correctly detected as download in the previous version.
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Google Analytics

Post by kleinerChemiker »

I didn't changed anything in the detection, only in the generated link. But I will check that asap.
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Google Analytics

Post by kleinerChemiker »

do you have mp3 as downloadable extensions in the setup?
Is blog.jeuxdepied.org in the list of internal hosts?
Maybe post a screenshot of your configuration.
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Re: Google Analytics

Post by One Eye Pied »

Everything seems to be well configured :
- All checkbox to "yes"
- download to track : "zip,rar,mp3,pdf"
- Hosts : "blog.jeuxdepied.org"
- User to not track : none

Link for Pdf files in sidebar and entries looks right :

Code: Select all

<a onclick="_gaq.push(['_trackPageview', '/download/uploads/documents/O_weens.pdf']);"  target="_blank" title="O_weens.pdf" href="/uploads/documents/O_weens.pdf">O'Ween's, page de base</a>
The problem came from a link generate by the "Easy Podcast Plugin". I hacked it for changing the player and add link to direct download, RSS, and I-Tunes.
Here is the code I wrote for this block in "podcast_player.php":

Code: Select all

/* XSPFPLAYER remplacé par Dewplayer*/
@DEFINE('PLUGIN_PODCAST_XSPFPLAYER'          ,'
<object type="application/x-shockwave-flash"
	data="#plugin#/player/dewplayer/dewplayer.swf"
	width="200" height="20" id="dewplayer" name="dewplayer">
	<param name="wmode" value="transparent" />
	<param name="movie" value="#plugin#/player/dewplayer/dewplayer.swf" />
	<param name="flashvars" value="mp3=#url#&showtime=1" />
</object>
<div style="text-align:center;">
	<a href="#url#" alt="Télécharger en mp3"><img style="border:none;" src="#plugin#/img/32_download.png" alt="Télécharger" title="Télécharger en mp3"/></a>
	<a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=346546143" alt="S\'abonner via I-Tunes"><img style="border:none;" src="#plugin#/img/32_podcast.png" alt="I-Tunes" title="S\'abonner via I-Tunes" /></a>
	<a href="http://feeds2.feedburner.com/OneEyeClub" alt="S\'abonner par RSS"><img style="border:none;" src="#plugin#/img/32_feeds.png" alt="S\'abonner par RSS" title="S\'abonner par RSS"/></a>
</div>
');
Maybe the problem came from this little hack...
kleinerChemiker
Regular
Posts: 765
Joined: Tue Oct 17, 2006 2:36 pm
Location: Vienna/Austria
Contact:

Re: Google Analytics

Post by kleinerChemiker »

please try this file. should be fixed. either it was always wrong, or I was too intoxicated from the solvents yesterday :wink:
Attachments
serendipity_event_google_analytics.rar
(2.77 KiB) Downloaded 414 times
One Eye Pied
Regular
Posts: 30
Joined: Wed Jan 18, 2006 6:35 pm
Contact:

Re: Google Analytics

Post by One Eye Pied »

I just install it.
Download links looks good.

More information tomorrow.

Thanks, merci, danke !
Post Reply