?
Solved

Google analytics without javascript in ASP page ?

Posted on 2009-02-19
4
Medium Priority
?
711 Views
Last Modified: 2013-12-08
Hi, i want to include the google analytics code in some pages without using the normal javascript. I want to use it on a mobile site and in my newsletter. Does anyone know how to do this ? I am not concerned about screen size or browser info, i just want to know how many people open a page.

I was hoping this code would do it but i don't see anything.

<img src="http://www.google-analytics.com/__utm.gif?utmwv=1&utmn=1234&utmac=UA-xxxxxx-x&utmdt=newsletter&utmp=/nieuwsbrief.asp&utmhn=http://www.xxxx.xx" width="1" height="1">

many thanks in advance
0
Comment
Question by:voerman
  • 2
3 Comments
 
LVL 31

Accepted Solution

by:
gwkg earned 1000 total points
ID: 23688424
You can track the clicks in your email by using Link Tagging with Google Analytics URL builder for you links
URL builder: http://www.google.com/support/analytics/bin/answer.py?hl=en&answer=55578
Link Tagging: http://www.google.com/support/analytics/bin/answer.py?answer=55518&topic=11014
Tracking open rates is a little more difficult because you need to use an image and track the amount of times it is viewed.  A lot of people open their emails without enabling the images, so you really need to serve a different image for each email.  
With a bit of coding you can use .htaccess to rewrite the image URL and then use a scripting language (PHP) to grab the image name, record it in a database and serve the generic image.  But if that is what you want to do, you should repost that specific question in the apache and PHP zones.
Google Analytics works on the higher end mobile phones.  Theres a thread in Google Groups with some of the major phones supported: http://groups.google.com/group/analytics-help-basics/browse_thread/thread/2e7a1192b89d80b3
To track the rest you would have to do the same thing as your email.  Use a tracking pixel and count the number of times it is open.
You could also use PHP to call a page in your on your site, say http://yoursite.com/mobile.php, but not display it, when a mobile device is detected as the browser.  That would be enough to track the page views in GA.
0
 

Author Comment

by:voerman
ID: 23689596
ok how do I call a page from an email and not display it ? With asp not php ?
0
 
LVL 31

Expert Comment

by:gwkg
ID: 23697337
That question you will probably need to ask in the ASP zone.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Ready to get certified? Check out some courses that help you prepare for third-party exams.
The viewer will learn how to count occurrences of each item in an array.
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses
Course of the Month15 days, 14 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question