How to send ga(...) events with google tag manager?


by delpha , in category: SEO Tools , 8 months ago

How to send ga(...) events with google tag manager?

Facebook Twitter LinkedIn Telegram Whatsapp Pocket

1 answer

by dejuan.watsica , 8 months ago


To send Google Analytics events with Google Tag Manager, you need to follow these steps:

  1. Set up Google Analytics and Google Tag Manager: a. Create a Google Analytics account and property. b. Create a Google Tag Manager account and container. c. Add the Google Tag Manager code to your website by inserting the container snippet.
  2. Create a Universal Analytics tag: a. Log in to your Google Tag Manager account and navigate to your desired container. b. Go to the "Tags" section and click on "New". c. Name your tag (e.g., "GA Event"). d. In the "Tag Configuration" section, select "Google Analytics: Universal Analytics". e. Choose "Event" under "Track Type".
  3. Configure the GA Event Tag: a. Provide the necessary fields like "Category", "Action", "Label", and "Value". b. You can use variables (predefined or custom) to dynamically populate the field values. c. Configure any additional settings as required, such as "Non-Interaction Hit" or "Enable Enhanced Ecommerce Features".
  4. Choose the trigger: a. In the "Triggering" section, select the appropriate trigger that will activate the tag. b. You can use built-in triggers like "All Pages" (fires on every pageview), or create custom triggers based on specific conditions.
  5. Submit and publish the container: a. Click on "Submit" in the top right corner to save your changes. b. Publish the container to make the changes live on your website.

Remember to test the events and check the data in your Google Analytics account to ensure everything is working properly.