You can connect Google Analytics and Google Tag Manager to your site from the project dashboard. Google tracking is added to your site for each ID you enter.
Before you start, set up your Google Analytics account and property, or your Google Tag Manager container. To learn how, see [GA4] Set up Analytics for a CMS-hosted website.
The field takes Google tag IDs (such as G- or AW-) and Google Tag Manager IDs (GTM-). You can add more than one.
To add Google Analytics or Google Tag Manager:
-
In the project list, click the Project Dashboard icon next to the project.
In Vibe, you can also click the Manage tab in the Vibe workspace.
-
In the side panel, click Settings (gear icon), then click Google Tools.
-
In the Google Analytics, Tag, and Tag Manager field, type your ID. To add another, press Enter or Space, then type the next one.
-
Click outside the field. A message confirms your changes were saved.
-
Republish your site for the changes to take effect on your live site.
The Google Analytics integration anonymizes visitor IP addresses by default. To learn more, see Google's documentation.
If you use Google Tag Manager:
-
Set up your tags and triggers in Google Tag Manager. To learn how, see Google's documentation.
-
Tags run only on your live, published site, so test them there.
-
Don't change the dataLayer setting in Google Tag Manager. The integration depends on it.
Note
To add tracking code yourself instead, add it in only one place on your site. The same code in more than one place can cause verification to fail.
-
Editor sites: In the editor's side panel, click More, then Settings, then Head HTML. Paste the code into the Head HTML or Body End HTML field. See Custom Code.
-
Vibe projects: Paste the code into Copilot and say whether to add it to every page or only specific pages. See Project Code in Vibe.
Following are several reasons your analytics might not be working properly:
-
Your site is not published. Google Analytics only tracks on live sites.
-
You are using an ad blocker that is preventing Google Analytics from recording your visit.
-
It has been less than 24 hours since you set up the integration. Sometimes it takes Google Analytics up to 24 hours to start tracking.
To learn more about Google Ads, see Google's documentation.
Google rejected my ad campaign because of malicious links or malware. What should I do?
Google Ads occasionally flags clients’ campaigns for having malicious links or software on their site. Our Support team has investigated this many times and found that they are false positives from Google. Unfortunately, this is not something Duda can resolve, but we do have a process we recommend following when working with Google to resolve the issue.
To submit an appeal to Google:
-
Use VirusTotal and Google’s Transparency Report to scan your site for malicious content. Take screenshots of the results.
-
Use Google Search Console to verify your domain ownership.
-
Submit your sitemap to Google in the Search Console.
-
Submit an appeal to Google and send the screenshots of your scan results from step 1.
When Google receives your appeal, they can manually re-crawl your site in order to detect false positives. If your ad campaign is flagged again, contact Google Support.
My ads received a “disapproved” status and I don’t know why.
Unfortunately, this is not within Duda's control, but we do have a process we recommend following when working with Google to resolve the issue.
To fix and resubmit your ads:
-
Check that your ads conform to Google’s ad campaign policies, editorial guidelines, and destination requirements.
-
After you determine what needs to be fixed, edit and resubmit your ads.
If your ads are still receiving a “disapproved” status, contact Google Support.