Analytics
3.5K members online now
3.5K 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 ?

Top Contributor Alumni
# 2
Top Contributor Alumni

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 ?

Top Contributor Alumni
# 4
Top Contributor Alumni

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