Add ClientID (CID) to email of contact form
-
Hi!
I am trying to get the Analytics ClientID (CID) of the visitors who fill in my contact forms. This would be the perfect key to keep record of my offline transactions in Google Analytics: to identify the client lead by campaign name/medium/source etc.
Is it possible to add below script so I can see the CID of the visitor in my notification e-mails? I hope someone can help me out. Thanks!
<script> ga(function(tracker) { clientId = tracker.get(‘clientId’); }); </script> <script> ga(function(tracker) { clientId = tracker.get(‘clientId’); document.forms[0].cid.value = clientId }); </script> <input type=”hidden” id=”cid” name=”cid”>
The topic ‘Add ClientID (CID) to email of contact form’ is closed to new replies.