Updating my google conversion tracking tags

petewinter used Ask the Experts™
I need assistance with updating my google conversion tracking please as they have changed the tags.

This is the tracking code before my head tag...

(function(d,e,j,h,f,c,b){d.GoogleAnalyticsObject=f;d[f]=d[f]||function(){(d[f].q=d[f].q||[]).push(arguments)},d[f].l=1*new Date();c=e.createElement(j),b=e.getElementsByTagName(j)[0];c.async=1;c.src=h;b.parentNode.insertBefore(c,b)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga");ga("create","UA-6620915-45","auto");ga("send","pageview");

Open in new window

On form success I previous used this code below for the conversion event tracking...

ga('send', 'event', { eventCategory: 'contact', eventAction: 'submit', eventLabel: 'hardware'});

Open in new window

This is the info that google sent me: https://support.google.com/google-ads/answer/7548399

Can you please show me what my code should now be?
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Fixer of Problems
Most Valuable Expert 2014
It is shown under Global site tag on that page.  Copy it and put in your account number.
David FavorFractional CTO
Distinguished Expert 2018
Tip:  Never guess if you've setup your tracking correctly. Know for sure...

https://chrome.google.com/webstore/detail/tag-assistant-by-google/kejbdjndbnbjgmefkgdddjlbokphdefk?hl=en provides free tag checking in Chrome.

This simple little go/no-go tool can save you massive amounts of cash catching slight errors.

Always check your setup with Tag Assistant.


Many thanks. After reading through and testing again I have resolved my issues.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial