Just a friendly warning. If you try to store copy of standard Apache HTTP Server web root, git repository, some Linux directories, etc in the Google Drive, then do not be surprised when Google silently corrupts the filenames by renaming dot (.) to underscore (_). For me this is happening to nix hidden files (begins with a dot), but some of colleagues remember to happen to regular PDFs as well.
Solution. Upload only archived files to the Google Drive. And preferably encrypted (just in case).
Disclaimer: this works for me and my clients today (Sep 2010). If Google or one on the web browsers change something, this may break all tracking, so use this on your own risk.
Below is working code fragments. In the process of making the code work, there was following problems / symptoms:
- Chrome and Safari refused to follow / ping image src at all;
- Firefox seemed to ignore / not follow googleadservices.com issued redirect 302 to googleads.g.doubleclick.net;
- It all seemed like some sort of Same origin policy;
- Firefox plug-in Firebug Net Panel showed strange question marks in Persist mode (seemed like request never completes). And on next click it showed – aborted.
Your HTML code:
<a href="http://some-lead-page-where-you-cannot-add-or-change-code" onclick="googletrack()">Some lead / sale / page view / other action</a>
Simple example code:
Example code with custom label passed as parameter:
Other fields such as value, etc. can be added as needed.
Tested on Internet Explorer 8.0.7600.16385, Mozilla Firefox 3.6.8, Google Chrome 6.0.472.53, Opera 10.61, Apple Safari 5.0.1.
Updated Sep 17, 2010.