Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2007-06-05 09:25:16

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Google Analytics and file_download

hello everyone

We’ve recently put google analytics into one of our textpattern sites by including the urchin code in our footers.

Very nice it is too.

One question though, in google analytics I’ve noticed that there is no data relating to the /file_downloads/ documents being captured.

Does anyone know where I can put the google analytics code to capture this information?

The administrator of the machine knows that she can access the stats through the textpattern admin interface, but it would be much nicer if we could have the one stop google stats shop for her.

Personally I think statistics are an incredible waste of time, but there you go, I do what I’m told.

:-)

Any help, greatly appreciated.

Offline

#2 2007-06-06 00:00:42

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Google Analytics and file_download

Offline

#3 2007-06-06 11:50:09

vanderkerkoff
Member
Registered: 2005-05-26
Posts: 45

Re: Google Analytics and file_download

Thanks Mary, you’re a godsend.

Next problem, our content people are putting the links into pages using textile, so it’s in this type of format

<code>clicking here.*</code>

Now how to get the google code into that.

I’ll post my solutions if I find them, it’s not really a textpattern question any more. Might help someone though.

Last edited by vanderkerkoff (2007-06-06 11:50:31)

Offline

#4 2007-06-07 14:33:08

Mary
Sock Enthusiast
Registered: 2004-06-27
Posts: 6,236

Re: Google Analytics and file_download

What I’d do is make some JavaScript that runs through all the links on a page, and checks where the link goes. If it’s a file download, then add the extra JS to that link.

Offline

Board footer

Powered by FluxBB