I have a website where I want to track opening of my emails. I've added google analytics image like this:
<img src="https://www.google-analytics.com/collect?v=1&tid=UA-XXXXXXXXX-X&cid={{analyticsCID}}&t=event&ec=email_open&ea=come_back_3&ni=1"/>
And I'm getting double email open event on first open of the letter. If I open email on mobile, only 1 event fired.
Is there any solution for this? Is it because of google proxy for images? Can I disable it to get CORRECT analytics data?
Likely because of email providers caching the image through a proxy: https://developers.google.com/analytics/devguides/collection/protocol/v1/email#gmail-image-proxy
Related
I'm trying to add Google Analytics to my newsletters - sending via email.
I found img tag logging ( <img src="https://www.google-analytics.com/collect?v=1&utmac=UA-123456789-1&ec=email&ea=open&t=event" /> - https://blog.mailtrap.io/google-analytics-for-emails/ ), but it's not working because of src link is replaced by mail engines (gmail, ymail,..).
Also, I tried to track it by opening on my own web-site: I added img tag on my web-site's main page and loaded many times, but Google Analytics did not report it (logging is working on my Google Analytics account: I've tried to add Google Analytics scripts in head and it was logged - function gtag and its scripts..).
How to use Google Analytics in mails?
Thanks
A lot of browser-based mailboxes will cache the image on their server instead. I don't think there is a way around that.
Regarding why nothing is tracking, in the link you provided as well as documentation from Google requires other parameters as well. You're missing at least the client id cid parameter, adding it should work.
You can verify with the hit builder.
I am facing a new requirement. My website has email sending facility, which contains links also. What I need is to show popup when I click on the link in the email contents, the contents may or may not be from the website. Which methods I can do for achieving this?
The only way is to have a link to an external page that will open in a browser and execute the popup.
If the content is not from a website I can't see a way of doing this. It will require javascript which cannot be used in an email.
I have received an email on my iPhone (with iOS 5.0.1) with an HTML attachment. The HTML attachment contains a form to fill out and submit. The problem is that submitting the form does not work. I click the Submit button and I get switched Safari, but the form information is not posted. Instead, the URL indicated by the form gets requested as via the GET method.
Is the problem that the Quick Look viewer is simply a passive viewer that does not do forms? I'd like to be able to open the attachment in Safari instead, but that does not appear to be an option. If a tap and hold the attachment, the only options I get are Quick Look and Dropbox.
Thanks!
After much research I've decided it simply does not work. Probably by design as a sort of security feature. I discovered a similar problem with Android phones.
I was working on a newsletter system, it's done now and it works fine. Today I was talking with a client about an upgrade for the system that does the following ->
"Automatic link tracking: View who
opened your email and what links they
clicked on."
Now, I have an idea on how to do this to add #id variable from the user query string on each link and then add a counter on each site to see who opened the link. BUT, is it possible to do this somehow else (without the counter on each link)? And how is it possible to track who opened your mail??? I saw a couple of newsletter system websites that say they can allegedly do this...
Thank you for your time!
The only way to track who opens your emails that I can think of is to use the query string trick with the images embedded in your email. This approach is obviously fragile since viewing of inline images can be turned of in most email clients.
As was mentioned; it is not possible to track everyone who opened the email. But you can track who clicked on a specific link. The method you mentioned with the #id variable will work - but instead of embedding the actual ID in the link, I would recommend encrypting that data and not sending the actual user id in the email.
To get the users who actually opened the newsletter, you can insert a 1x1 pixel image into the email as hidden content. That pixel would come from www.myserver.com/tracker.gif?foo=bar.
Then you would look at your web server log or log this request in a database so that you can track the ones who really opened the newsletter.
If you visit maps.google.com on a mobile device, then press 'Menu', 'Get Directions', and select the 'transit' option, you are taken to a page where you can enter two locations and a date/time, and get directions on public transit. However, the URL is still maps.google.com.
Is there any way to link directly to this page so that I can load it in a UIWebView in my iOS app? Would 'clicking' the buttons in Javascript be (the only/a good) solution?
Try: http://www.google.com/transit
Even clicking the buttons in javascript doesn't seem to be working. The Google Maps code is a little strange- the event listeners aren't assigned directly and I can't get a .click() to work. So what I'll do is have the user enter the two locations in boxes in the app, then load something like http://maps.google.com/maps?f=d&source=s_d&saddr=Coover+Hall&daddr=lied+rec+center in the UIWebView, except I'll add some more specific location information before building the URL, since this is a city-specific app. Not a perfect solution but it gets the job done.
You could create a URL that links to the transit directions with the "dirflg=r" paramater.
Find the other URL parameters here: http://web.archive.org/web/20110714031648/http://mapki.com/wiki/Google_Map_Parameters