Reply To: Google Ads Adwords Quform PHP version

Home Forums Quform PHP Google Ads Adwords Quform PHP version Reply To: Google Ads Adwords Quform PHP version

#31716
markko
Participant

Hi Ally, many thanks for this!

I also have a Clicky.com conversion code to add as well. This registers a conversion the same time as google.

	<script>
		var clicky_custom = {};
		clicky_custom.goal = { name: 'New Site Conversion', revenue: '1' };
	</script>

How would I add this to the code you have given below?

$('form.quform').Quform({
    successStart: function (response) {
        if (window.gtag) {
            gtag('event', 'conversion', {
                'send_to': 'AW-CONVERSION_ID/AW-CONVERSION_LABEL',
                'value': 1.0,
                'currency': 'USD'
            });
        }
    }
});

This is the script loaded elsewhere in the page to call Clicky.com

<script type="text/javascript">
var clicky_site_ids = clicky_site_ids || [];
clicky_site_ids.push(10000000);
(function() {
  var s = document.createElement('script');
  s.type = 'text/javascript';
  s.async = true;
  s.src = '//static.getclicky.com/js';
  ( document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0] ).appendChild( s );
})();
</script>
<noscript><p><img alt="Clicky" width="1" height="1" src="//in.getclicky.com/fffffffffns.gif" /></p></noscript>

More info here.

https://clicky.com/help/faq/features/goals/js

Thank you

  • This reply was modified 1 month, 3 weeks ago by markko. Reason: added detail
  • This reply was modified 1 month, 3 weeks ago by markko.
  • This reply was modified 1 month, 3 weeks ago by markko. Reason: clarity
  • This reply was modified 1 month, 3 weeks ago by markko. Reason: added URL for clicky explanation
  • This reply was modified 1 month, 3 weeks ago by markko.
Be inspired. © 2020 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy