Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] Can I track referring URL in mail?

  • I have successfully set up Google Adwords conversion tracking on successful submit, using the on_sent_ok hook. However, I was wondering if it was at all possible to make a note in the mail about whether a form submission was from an Adwords-referred client or not…

    I have included in the form the following code:

    <!-- Google Code for Lead Conversion Page --><script type="text/javascript"><!--
    /* <![CDATA[ */
    	var google_conversion_id = 1234myuniqueid1234;
    	var google_conversion_language = "en_US";
    	var google_conversion_format = "1";
    	var google_conversion_color = "000000";
    	var google_conversion_label = "1234myuniquelabel1234";
    	var google_conversion_value = 0;
    /* ]]> */
     --></script><!-- fallback if JS is not enabled --><noscript><div style="display:inline;"><img height="1" width="1" style="border-style:none;" alt="" src="" /></div></noscript>

    This defines the conversion variables. On_sent_ok, the following is passed:
    on_sent_ok: "jQuery(String.fromCharCode(60)+'img/'+String.fromCharCode(62)).attr('height','1').attr('width','1').css('border-style','none').attr('src',''+google_conversion_id+'/?value='+google_conversion_value+String.fromCharCode(38)+'label='+google_conversion_label+String.fromCharCode(38)+'guid=ON'+String.fromCharCode(38)+'script=0').appendTo('body');"

    I’m not familiar with javascript (or jquery), but is there a way to appendTo the email sent?

  • The topic ‘[Plugin: Contact Form 7] Can I track referring URL in mail?’ is closed to new replies.