Â
Â
With Wix Marketing Tags, you can embed marketing tags in your website. The supported marketing tags are:
Note: The Google Ads Conversion tag was previously called Google AdWords tag.
Note: Both Google Universal Analytics tags and Google Analytics 4 tags are supported.
These marketing tags enable you to track user activity, ad conversion rates, and more.
Note: Only one marketing tag of each type is supported per Wix site.
The Marketing Tags API allows you to:
To use Wix Marketing Tags,
import { marketingTags }
from the wix-marketing-tags.v2
module:
Domain: Specifies which website is associated with the marketing tag.
Note: When you change the domain of a Wix site, the embedded marketing tags won’t load anymore. To update the domain use the Upsert Marketing Tag function.
Tracking ID: Specifies your external tracking ID. Learn more about each tracking ID in the corresponding object description. These are the supported external IDs:
Marketing Tag | External ID Name | ID Format |
---|---|---|
Google Ads Conversion tag | Conversion ID | AW-123456789 |
Google Universal Analytics tag | Analytics ID | UA-12345-1 |
Google Analytics 4 tag | Measurement ID | G-12345 |
Yandex Metrica tag | Tag number | 123456789 |
Facebook Pixel tag | Pixel ID | 123456789 |
Google tag | Tag Manager Container ID | GTM-12345 |
Functions in Wix Marketing Tags are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.