How do I share data on Google Tag Manager?

How do I share data on Google Tag Manager?

Set up the data layer variable

  1. Click Variables.
  2. Under User-Defined Variables, click New.
  3. Click Variable Configuration and select Data Layer Variable as the variable type.
  4. In the Data Layer Variable Name field, enter the key exactly as it was written in the code (e.g. bookTitle, not book title.)

How do I create a custom event in Google Tag Manager?

To create a new custom event trigger:

  1. Click Triggers New.
  2. Click Trigger Configuration and choose the Custom Event trigger type.
  3. Enter an event name. Select “use regex matching” to allow this field to handle regular expressions.

What are Google Tag Manager variables?

Variable: A variable is a named placeholder for a value that will change, such as a product name, a price value, or a date. Data layer: Tag manager implements a data layer to temporarily hold values in the client so that they can be used by tags, triggers, and variables.

How to create custom variable in Google Tag Manager?

Click Add Field and select Simple table. Replace the default name (e.g. “simpleTable1”) with “list”. In the Template Preview, click Refresh. Repeat this step for a Text Input and call it “array”, two Checkboxes called ” use_array ” and “sort”, and a Text Input called “delimiter” .

What are recommended events in Google Tag Manager?

Recommended events are events that you manually implement, but that have Google-predefined names and parameters. Recommended events unlock existing and future reporting capabilities not available for custom events (events that you name yourself). Recommended events exist for: Custom events are events that you name and implement yourself.

How to create Google Analytics 4 event tag?

To create a Google Analytics 4 Event tag: Click Tags New. Click Tag Configuration. Select Google Analytics: GA4 Event. For Configuration Tag, select the Configuration Tag you created earlier. For Event Name, specify the name of the event.

How does custom event trigger work in Tag Manager?

When the specified button is clicked, a custom event with the value of button1-click is pushed to the data layer. Tag Manager then detects button1-click as a custom event value, and will proceed to fire the tag.