Script to the tracking of outbound links and downloads with Google Analytics

Update: there is an update of the script.

hen you download files or clicks on outgoing links with Google Analytics track wants to that of hand do by appending the link a JavaScript event and calls the urchinTracker()-Methode Google Analytics. The I had procedure described in another post ever some time ago. This method is good but only selectively individual links to track but not to capture all outgoing links and downloads.

The smarter way is a little DOM script which I found in the Google Analytics Shortcuts. This script trackt all outbound links and all file downloads and sends it to Google Analytics, where they later under the virtual directory / outbound content-> all pages in the report.

For all the not has the book are, I’ve packaged the script into its own file times and tried. You must ledicglich file download, unzip on your server and before the closing BODY tag includen then at the end of your Web page.

Now all outgoing links and downloads are recorded in virtual directory < i > / outbound < /i >. You can configure the virtual directory within the script itself, also there a debug variable that can set you to 1 to test whether the script works. In addition, you can specify even extensions of allowed downloads.

Download: external_track.zip

And here’s a screenshot as the links then show up in the analytics report:

outbound_links.png

Related posts:

Amjad's articles more →

Sajjad's articles more →

Tahir's articles more →

Nadeem's articles more →

Alexis's articles more →

categories

archives

top searches

Back to Top

Amjad Iqbal
Page 1 Page 2 Page 3 Page 4 Page 5 Page 6 Page 7 Page 8 Page 9 Page 10 Page 11 Page 12 Page 13 Page 14 Page 15 Page 16 Page 17 Page 18 Page 19 Page 20 Page 30 Page 40 Page 50 Page 60 Page 70 Page 80 Page 90 Page 100 Page 110 Page 120 Page 130 Page 140 Page 150 Page 160 Page 170 Page 180 Page 190 Page 200 Page 210 Page 220 Page 230 Page 240 Page 250 Page 260 Page 270 Page 280 Page 290 Page 300 Page 310 Page 320 Page 330 Page 340 Page 350 Page 360 Page 370 Page 380 Page 390 Page 400 Page 410 Page 420 Page 430 Page 440 Page 450 Page 460 Page 470 Page 480 Page 490 Page 500 Page 510 Page 520 Page 530 Page 540 Page 550 Page 560 Page 570 Page 580 Page 590 Page 600 Page 610 Page 620 Page 630 Page 640 Page 650 Page 660 Page 670 Page 680 Page 690 Page 690 Page 690 Page 700 Page 710 Page 720 Page 730 Page 740 Page 750 Page Last
Neat Bits & Pieces HTM Sitemap/ArchivesArticles Database