Jump to content

How to Correctly Integrate Google Ad Words Conversion Tracking in Squarespace?

Recommended Posts

After going through many tutorials and speaking with the Google Ads team a few times I am still struggling to figure out how to correctly integrate Google Ads conversion tracking on my Squarespace website.

To be sure I am not doing commerce. I am simply tracking the conversions of those who fill out a form and submit, like a quote for instance. Most of the tutorials look like they are geared for commerce which might make a difference in setup.

To be sure I have a Squarespace Business Account and have fully setup accounts for both Google Ads and Google Analytics.

I have copy and pasted the Google Ads Tag into the Settings -> Advanced -> Code Injection -> Header of my site. (see screenshot)

I also put the Event Snippet into the Page Settings -> Advanced -> Page Header Code Injection section of the page I redirect to after a successful form submission. (see screenshot)

My problem is that after setting it up I still see a "No Recent Conversions" in my Google Ads page (see screenshot). This is after I used another computer, with a VPN, and no account logins to make multiple test submissions.

Why is this? Do I need to wait a week for it to fully initialize or did I set something up incorrectly?

Is there a better way to do this?

I am happy to document anything else and would appreciate any tips possible.

Screen Shot 2023-01-11 at 1.53.37 PM.png

Screen Shot 2023-01-11 at 1.58.09 PM.png

Screen Shot 2023-01-11 at 1.58.26 PM.png

Link to comment
  • 4 weeks later...
  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

 

You can try to do this:

1. Create a new AdWords Conversion Tracking Tag in your AdWords account. More in my blog https://swiit.solutions/blog/social-media-marketing/

2. Copy the Conversion ID and Conversion Label from the AdWords Conversion Tracking Tag. 3. In Squarespace, go to Settings > Advanced > Code Injection and paste the following code, replacing the placeholder values with your Conversion ID and Conversion Label: <script> gtag('event', 'conversion', { 'send_to': 'CONVERSION_ID/CONVERSION_LABEL' }); </script> 4. Click Save and you will be done.

Edited by HannaBorman
Link to comment
  • 2 months later...

Just thought I would add to this thread because I struggled with this for a few days, so maybe this can help a few people out!

I am using Google Tag Manager to trigger the Google Ads Conversion after the lead form is submitted. Personally, I prefer GTM because I can run everything through it, G4A, Google Ads, custom code etc.

Anyhow usually, the lead form confirms submission on a "thank you" page/url, which is easy to trigger G-Ads Conversion using a URL trigger, but this particular form was set to confirm submissions with just a "thank you" message on the same URL, so what I did is use the "Element Visibility" trigger on GTM to trigger the G-Ads conversion snippet.

I used a CSS selector as the visibility element, I created an HTML element that was set to render after the form was submitted. I set that HTML element up in the form block itself, that's under the post-submit section.

I gave the HTML element, in this case, a <div> element which I assigned a class of ".form-submission-gtrigger" as in image 1.

Then I created a little custom css, as follows, make sure to give the div a little height as it seems GTM won't detect the element's presence if it has 0 height. 
 

/* GTM Trigger */
.form-submission-gtrigger {
  height: 20px !important;
  }

Then I set GTM to look for the presence of the .form-submission-gtrigger class in order to trigger the G-Ads conversion snippet,

I  set GTM trigger to only once per page and to monitor the DOM because the HTML element is not being triggered through a scroll it is just popping up after the form submits, (still invisible to the user), I also limited the DOM monitoring to the URL with the lead form. Settings are in image 2.

 

Anyhow, not sure if this is the most elegant way to accomplish this, but it works and works well ;)

post-space.jpg

thanks-you-css.jpg

Link to comment
  • 2 weeks later...

Hello thread, 

I am currently working with a client that uses Squarespace.  I have been banging my head to get this to correctly work with Google Adwords.  We can't run the ads until I know this is set up correctly.  Blows my mind that WordPress, which some would deem more complicated, makes this so much of an easier process. Nevertheless, maybe I'm just making the process harder than it should be.  

We have set up about 4 different conversions, basically trying all 4 times, to no avail. This seems to be the clearest website instructions, https://squarefeed.io/implement-google-ads-conversion-tracking-on-squarespace/

Now, when I follow the instructions to a T, we still are not detecting it when I turn Squarespace into test mode and try and trigger the Google Tag through the checkout process by completing the test transaction.  I've even let the thing go for days on Google Adwords, hoping that it would trigger soon enough.  I thought maybe the cache on Squarespace wasn't loading.  As others have said in this thread, much research has been done with this process which blows my mind, because Google Adwords is a total must for so many businesses to compete. 

Is there something that is not being included in the link above?  Like maybe a new release of Squarespace, that made those instructions void?  I'm totally at a loss, any help would be much appreciated.  Thanks!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.