AdWords is now Google Ads. Our new name reflects the full range of advertising options we offer across Search, Display, YouTube, and more. Learn more

Analytics
1.9K members online now
1.9K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Use another attribute other than src for Google Analytics url ?

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Can we use any other attribute other than src for the url. Will it work. I would like to avoid the user click on download image once the email is received. I am planning to embed the image through code so that the images opens as the mail is opened. So if another attribute can be used for giving the analytics url, then I could achieve this.

 

<img width='1' height='1' src=http://www.google-analytics.com/collect?v=1&amp;tid=" + System.Configuration.ConfigurationManager.AppSettings["GoogleAnalyticsTrackingCode"].ToString()

                + "&amp;cid=" + System.Configuration.ConfigurationManager.AppSettings["GoogleAnalyticsAccountId"].ToString() + "&amp;t=event&amp;ec=email&amp;ea=open&amp;el=" + strTemp_mailto + "&amp;cs=&amp;cm=email&amp;cn=" + intBatch_id.ToString() + "&amp;cm1=1 />

Use another attribute other than src for Google Analytics url ?

Collaborator ✭ ☆ ☆
# 2
Collaborator ✭ ☆ ☆

Is there any other attribute of img tag which is meant for URL / location?

 

Regards, Nik
LinkedIn  |   @nikhilparachure | My Blog

Re: Use another attribute other than src for Google Analytics url ?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
No there is no other attribute to replace src. Can we implement using any other object other than hidden image?

Use another attribute other than src for Google Analytics url ?

Collaborator ✭ ☆ ☆
# 4
Collaborator ✭ ☆ ☆

I guess it will take XHTML genius to come up with way of sending request without javascript and without img tag. I am not one Smiley Happy @Dave_Davis any ideas?

 

Regards, Nik
LinkedIn  |   @nikhilparachure | My Blog