A data layer is an object that contains all of the information that you want to pass to Google Tag Manager. External link
virtualPageview
in the Data Layer Variable Name field and click the SAVE button to finish the variable creation.pageview
to your analytics service. Its creation is explained in the following steps:virtualPageview
in the Event Name field and click the SAVE button to finish the trigger creation.pageview
to your analytics service.pageview
to your Google Analytics:url
and title
that are stored in the Data Layer. You are accessing them with the GTM variable {{DL virtualPageview}}
(the one you created before). If you gave a different name to this variable, that's the name you'll have to type inside the brackets (respecting whitespace).mySite
string in the snippet should be substituted by your site's name.pageviews
in your Google Analytics.