Skip to content

Commit

Permalink
Add more clear instructions on triggers / tags
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandoorn committed Oct 14, 2017
1 parent ee45f7a commit 128a461
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 9 deletions.
18 changes: 14 additions & 4 deletions docs/cart.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,22 @@ Make sure to inject an object as from the GTM documentation, and you are good to
and trigger this method in the `onSuccess` method.
## Configuration in GTM

### Trigger (Add to Cart)
## Configuration in GTM

Note that this configuration has to be added next to the [standard Google Tag Manager / Google Analytics implementation](https://support.google.com/analytics/answer/6163791).

### Add to Cart (1/2)

#### Trigger (Add to Cart)

Add a trigger:

* Type: Custom Event
* Activate on: Event equals `addToCart`

### Tag (Add to Cart)
#### Tag (Add to Cart)

Note: this trigger is different than the

Add a tag:

Expand All @@ -49,14 +57,16 @@ Add a tag:
* Use dataLayer
* Trigger on: see trigger above.

### Trigger (Remove from Cart)
### Remove from Cart (2/2)

#### Trigger (Remove from Cart)

Add a trigger:

* Type: Custom Event
* Activate on: Event equals `removeFromCart`

### Tag (Remove from Cart)
#### Tag (Remove from Cart)

Add a tag:

Expand Down
18 changes: 14 additions & 4 deletions docs/checkout.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,20 @@ selected option will be sent to GTM. Keep this in mind when adjusting the checko

## Configuration in GTM

### Trigger (Checkout)
Note that this configuration has to be added next to the [standard Google Tag Manager / Google Analytics implementation](https://support.google.com/analytics/answer/6163791).

### Checkout (1/2)

Checkout is used to track the steps customers follow throughout your checkout flow.

#### Trigger (Checkout)

Add a trigger:

* Type: Custom Event
* Activate on: Event equals `checkout`

### Tag (Checkout)
#### Tag (Checkout)

Add a tag:

Expand All @@ -32,14 +38,18 @@ Add a tag:
* Use dataLayer
* Trigger on: see trigger above.

### Trigger (Checkout Option)
### Checkout Option (2/2)

Checkout Option is used to track selected shipping method or payment method by the customer.

#### Trigger (Checkout Option)

Add a trigger:

* Type: Custom Event
* Activate on: Event equals `checkoutOption`

### Tag (Checkout Option)
#### Tag (Checkout Option)

Add a tag:

Expand Down
2 changes: 2 additions & 0 deletions docs/product_clicks.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ Becomes:

## Configuration in GTM

Note that this configuration has to be added next to the [standard Google Tag Manager / Google Analytics implementation](https://support.google.com/analytics/answer/6163791).

### Trigger

Add a trigger:
Expand Down
3 changes: 2 additions & 1 deletion docs/product_detail_impressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ https://developers.google.com/tag-manager/enhanced-ecommerce#details

## Configuration in GTM

Product detail impressions are tracked on the default 'pageview'. Make sure to implement Google Analytics via Google Tag Manager via [the official documentation](https://support.google.com/analytics/answer/6163791).
Product detail impressions are tracked on the default 'pageview'. Make sure to implement
Google Analytics via Google Tag Manager via [the official documentation](https://support.google.com/analytics/answer/6163791).
2 changes: 2 additions & 0 deletions docs/product_impressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ Because Sylius doesn't fire the `sylius.<resource>.index` yet (https://github.co

## Configuration in GTM

Note that this configuration has to be added next to the [standard Google Tag Manager / Google Analytics implementation](https://support.google.com/analytics/answer/6163791).

### Trigger

Add a trigger:
Expand Down

0 comments on commit 128a461

Please sign in to comment.