Google Tag Manager

45-60 minAdvanced

Master Template.

Intermediate Recommended

Layout Code

Developer.

1

Edit View

1

Settings > Templates > Master (_Layout.cshtml).

2

Paste GTM code in <head>.

3

Ideally, check for a 'GtmId' property on the Homepage node: @Model.Root().Value("gtmId").

Verification Checklist

  • Source