I am wondering whether i can add google analytic to an email.
I want to check my click rate , open rate of my sent mail. I have done some research on this and I learnt that there is a track code should be useful.
So,
Since now i am sending an html version email, is it possible to add the code into the mail?
Also,
If i want to see the result of it , is it possible i do not need to login to the google page, but connect to their server and retrieve the result and show them on my php page?
Thank you
I would say NO on this question. You could of course add the Google Analytics script-snippet to your HTML email, but I believe most e-mail clients will block the JavaScript for security reasons. Thus leaving you with inaccurate data, at best.
In your case, if you don't want to send your mails through MailChimp or some other third party service that does the tracking for you (they track both openings and clicks), I would implement my own "simple" tracking system. Each link in the email re-directs through a page that you are in control of, where you track the click and then redirect the user to the appropriate address.
Update
About getting data from your Google Analytics account, I believe you can use the Analytics Reporting API. Haven't tried it myself, but it sounds like what you are needing.
Yes , when you are sending the HTML code to the client , enclose an analytics snippet in the FOOTER of your page. That should do it. However you cannot modify the code.
You can use Google Analytics tracking code, but you will see the "visits" only.
"Visits" => When a user opens an email of you (and of course to be connected to internet)
I think this code will not work inside Outlook.
To see the results, you need to login into your Google Analytics account.
PS: Be sure to setup a valid analytics tracking code.
You can only track link-clicks with Google Analytics if your target site has the Analytics Code in it:
You can read about it here:
http://analytics.blogspot.com/2009/03/tips-for-tracking-email-marketing.html
Yes it is possible to use google analytic's to track open rates.
If you have a pure text version of a email no it is not possible to track it as it need a call to a image so it is only possible using a html version. No you do not try and embed the standard javascript for the tracking you make a direct call to the tracking gif.
There was a free service that did do this
http://web.archive.org/web/20100828084217/http://email-tracking-with-google-analytics.com/index.php
Related
I'm running a site that has google adsense advertisements on it, and they recently notified me that I'm passing PII (Personally Identifiable Information) to them. This came as a surprise, since I intentionally designed the site to avoid doing that and have come to find out that some users are not following the directions on the website for referring traffic and are inputting their EMAIL ADDRESSES instead of their referral numbers.
For example, they should be using http://www.scratch4satoshis.com/?r=2127
but instead are using http://www.scratch4satoshis.com/?r=redacted#sample.com and so, the traffic they send there are shown google ads and if they click them, pass that PII along to google and now they're threatening to close my adsense account.
The site is written in PHP; I'm wondering if there is a way to modify the information being passed to Google Adsense?
Try to filter get parameter as integer values:
$r = intval($_GET['r']);
When the users add events to the online calendar they also can be added to the outlook calendar (synchronize). Obviously a site built using PHP can not integrate with desktop application directly, so I am looking alternative options.
Options I found:
Using PHP ICAL library creates an .ics file and the user can download it and install. Not the most user friendly way of doing it, might work.
Use SharePoint or exchange server- but have no previous experience working Microsoft technologies, so it not ideal.
Use Google Calendar and Zend Library (gdata), create online calendar and add events to that. Then using Google Calendar Sync tool the user can sync the online calendar to outlook. But the problem here is the all users need a gmail account to use the Sync tool, it not ideal when you have thousands of users on the site. Unless I create one global gmail account and create many calendars on that account, if that even possible.
Questions:
Are there any outlook plug-ins paid or free (ideally) that can achieve this?
Are there any web service/ APIs that can achieve this?
Any other ideas or solutions?
Office 365 comes with an REST API that can be used to read/write to calendars.
Here's some documentation on this. http://msdn.microsoft.com/office/office365/api/calendar-rest-operations
Alternatively, the EWS Managed API might be able to help you: http://msdn.microsoft.com/en-us/library/office/dd633696(v=exchg.80).aspx and
http://msdn.microsoft.com/en-us/library/office/dd633702(v=exchg.80).aspx
you could do this by having the outlook subscribe to the online calendar.
with phpicalendar you can have other clients subscribe to your calendars (here)
you may want to tweak the generated .ics file to include X-PUBLISHED-TTL - Recommended update interval for subscription to the calendar
To get the calender event follow these step:
Sign in to Calendar
On the toolbar, click Share
Select the calendar that you want to export/embed.
Click Get a link.
Under Show event details (click Create)
Note: If step number 5 is already performed, just skip it and click Link to event details
Copy the link that you needed and paste it on the desired program/website.
Use EWS exchange webservice to achieve this.
If it is a website with a no. of users u will need to create OU in exchange server and add a admin user who has read permissions to all accounts in the DL.
EWS exposes endpoints where in u can fetch the calendar mail add read and do all kind of operations.
Building off Rahul's idea but using a different approach - Microsoft provides something similar to a "RSS feed" that auto updates each time you GET the URL, except it's an feed of "ICS" event data:
Open up Outlook Web Access (OWA), e.g. if you are using a microsoft.com account the URL might be https://outlook.live.com/calendar/ (if you are using some other Microsoft 365 account the URL may be different)
On the top right, click the Settings icon
Click View all Outlook Settings
Click Calendar > Shared Calendars > and under Publish a calendar, select the calendar, then under Select permissions, choose as appropriate, then click Publish
It will give you HTML and ICS links. Copy the ICS link URL.
Use your favourite programming language/tool/software to periodically do a HTTPS request (using CURL or AJAX or some other HTTP fetch) using GET method to the URL you got in step 5. You will get back a bunch of calendar data in ICS format. Use this however you need. You may be able to find some pre-written code from elsewhere that parses ICS data for you, or you can manually create your own parser code if you have to.
Is it possible to create a gmail gadget with a button that would send a message's sender, subject, date and content via POST to some PHP page?
If so, any clues as to how this could be done?
I have been asked to integrate this as part of a small CRM, not sure if it can be done.
Thanks!
Contextual Gadgets might cover what you need, alternatively you could fetch the messages externally using the Mail feeds.
In either case, you will need to be authorised either via the Google Apps Marketplace or directly from the domain administrator by setting up OAuth credentials.
It's highly unlikely; the emails are considered private, no gadget should have access to them.
so i was wondering this: for example: when you subscribe to Facebook you have the option to invite your friends from gmail(if you have a gmail account), so you would enter your gmail login and password and facebook would grab all your contacts from gmail, so i was wondering how this is done? is there an API from Gmail or from Hotmail that permits to program this?
thanks
These sites don't use an all-encompassing API, they take your login you provide and from their side login to Google (for example) as you and scrape it for your contact info.
This is why you should also be very careful about who you trust with that login information.
yes .There r different API's for all of these.you can download them by simply typing contact fetcher script in Google or something like this. They r free.
refer link https://sourceforge.net/projects/contactgrabber
There might not be an API specifically for it, but it's still pretty easy. I did something similar with PHP, using CURL to log in to a website and download reports automatically.
edit: You should be aware that some sites won't like that you do it, and might sue you for it. Always get a permission from the site owner before you try it.
My client has a Google Adsense account and one ad-campaign with several ads under it.
The client needs to identify the incoming users who come through clicking each ad.
The client uses Drupal PHP site.
Is there a possibility to track incoming users who come through Google ads?
Use Google Analytics. From the Features page:
Integrated with AdWords and AdSense
Optimize your AdWords performance with post-click data on your keywords, search queries, match type and more. AdSense reports show publishers which site content generates the most revenue.
You can add arguments to the urls used in the adds:
http://example.com
changed to
http://example.com?google=ad123
You can then in your Drupal check for the presence of the google argument in the $_REQUEST variable and act accordingly. This should be done in hook_boot.
http://code.google.com/apis/analytics/docs/tracking/eventTrackerGuide.html
You may use events, and you may add custom parameters to them, but they didn't work for me on the first shot and i gave up. If you figure out how to use them please post a story on how you did that:)