Хелпикс

Главная

Контакты

Случайная статья





Measuring Purchases (измерение покупок)



 

С товаров: http: //deecrypto. ru/shop/ нужно убрать цены. Вместо кнопки «В корзину» сделать «По запросу» при клике открывается Pop-Up форма с полями: «Запросить стоимость оборудования»

- Представьтесь (обязательно)

- Email (обящательно)

- Телефон (обязательно)

- Телеграмм (не обязательно)

 

Далее когда отправляется, то каждой заявке присваивается свой порядковый номер, к примеру 345 / 346 / 347 и т. д.

 

Нужно посадить код Google Tag Manager (контейнер)

 

Paste this code as high in the < head> of the page as possible:

 

<! -- Google Tag Manager -->

< script> (function(w, d, s, l, i){w[l]=w[l]||[]; w[l]. push({'gtm. start':

new Date(). getTime(), event: 'gtm. js'}); var f=d. getElementsByTagName(s)[0],

j=d. createElement(s), dl=l! ='dataLayer'? '& l='+l: ''; j. async=true; j. src=

'https: //www. googletagmanager. com/gtm. js? id='+i+dl; f. parentNode. insertBefore(j, f);

})(window, document, 'script', 'dataLayer', 'GTM-NQS29KP'); < /script>

<! -- End Google Tag Manager -->

 

Additionally, paste this code immediately after the opening < body> tag:

 

<! -- Google Tag Manager (noscript) -->

< noscript> < iframe src=" https: //www. googletagmanager. com/ns. html? id=GTM-NQS29KP"

height=" 0" style=" display: none; visibility: hidden" > < /iframe> < /noscript>

<! -- End Google Tag Manager (noscript) -->

 

 

ВАЖНО!!!!!!!

Нужно настроить также отпарвку события Transaction в расширенной электронной торговле – отпарвку ID заявки как заказа с составок заказа (без стоимости) вместо стоимости можно проставлять 1 руб.

 

Measuring Purchases (измерение покупок)

· Ecommerce Measurement: purchase

· Accepts Data: id (Transaction ID), array of productFieldObjects

Push your transaction details into the Data Layer using the purchase action, along with an event that will fire an enhanced ecommerce-enabled tag. In this example, the transaction details are known at the time the page loads, and will be sent with a pageview when the gtm. js script returns:

< script>
// Send transaction data with a pageview if available
// when the page loads. Otherwise, use an event when the transaction
// data becomes available.
dataLayer. push({
'ecommerce': {
'purchase': {
'actionField': {
'id': 'T12345', // Transaction ID. Required for purchases and refunds.
'affiliation': 'Online Store',
'revenue': '35. 43', // Total transaction value (incl. tax and shipping)
'tax': '4. 90',
'shipping': '5. 99',
'coupon': 'SUMMER_SALE'
},
'products': [{ // List of productFieldObjects.
'name': 'Triblend Android T-Shirt', // Name or ID is required.
'id': '12345',
'price': '15. 25',
'brand': 'Google',
'category': 'Apparel',
'variant': 'Gray',
'quantity': 1,
'coupon': '' // Optional fields may be omitted or set to empty string.
},
{
'name': 'Donut Friday Scented T-Shirt',
'id': '67890',
'price': '33. 75',
'brand': 'Google',
'category': 'Apparel',
'variant': 'Black',
'quantity': 1
}]
}
}
});
< /script>

Note: The ecommerce. purchase. products array can be used to report purchases to Google Analytics and DoubleClick Search, though the array elements supported by DoubleClick Search are slightly different from those in the preceding example. See the example in the Requirements for the JSON format for reporting purchase details in DoubleClick Search.

 

 

ПОДРОБНЕЕ МОЖНО ПОЧИТАТЬ ЗДЕСЬ:

https: //developers. google. com/tag-manager/enhanced-ecommerce#purchases

Настраиваем также просмотры товара – карточки

А также отпарвку заявки – оформлдение заказа с передачей номера заявки – ID transaction и данных название товара артикул и так далее. Цену ставим 1 руб.



  

© helpiks.su При использовании или копировании материалов прямая ссылка на сайт обязательна.