How to perform page tagging
You do page tagging in your website in two ways, by meta tags or JavaScript:
- Meta tags (preferable): the procedure is simple, just add our <meta> tags into your header. With them, we will gain a more comprehensive grasp of the pages served and also the product or category shown, as well as the product or category displayed at the moment.
In some cases, page tagging with meta tags is not applicable and in these cases, we indicate to do your page tagging via JavaScript.
When you use Google Tag Manager to insert tags for example, you won't be able to page tag via meta tags, so it is necessary to analyze both available ways first choose which one to use.
Will detail each of the following page tagging, starting with the meta tags.
To start page tagging, add our ' <meta> ' tags into your header.
These tags will tell us what kind of page you are serving and, optionally, what product or product category is being displayed.
To use Meta tags, you can use the example below on your page:
<!-- Page of 'Forgot my password' --> <meta name="kdt:page" content="password-reset"> <!-- Checkout process--> marcação de páginas <!-- Product details --> <meta name="kdt:page" content="product"> <meta name="kdt:product" content="sku=123, name=Camiseta Verde"> <!-- Travel tickets search (flight, bus) --> <meta name="kdt:page" content="search"> <meta name="kdt:departure" content="GRU-SFO"> <meta name="kdt:departure-date" content="2020-12-25"> <meta name="kdt:return" content="SFO-GRU"> <meta name="kdt:return-date" content="2021-01-25">
- JavaScript (Advanced): This is a more complex option, so study carefully and cautiously to determine whether it is the best choice for your store.
For some situations, such as when using Google Tag Manager, the use of page tagging is infeasible. Therefore, you can use the instructions in this section to trigger navigation events through our JavaScript.
In this mode, our JavaScript will not send the navigation automatically and expects you to do the sending once the page loads.
To tag your pages using this method, click here.
If you are using Google Tag Manager, this article can help you perform the necessary settings more easily.