Open
Description
Does anyone know if its possible to pass the Product Name, SKU and Price to Meta Pixel to the Meta Pixel and GTM/GA4?
Where would I find the variable names? Here is my add-to-cart tracking code within the Buy Button.
"DOMEvents": {
'click .shopify-buy__btn-wrapper .shopify-buy__btn': function (evt, target) {
fbq('track', 'AddToCart', {
content_name: prod_name,
content_ids: [prod_sku],
content_type: 'product',
value: prod_price,
currency: 'USD'
});
// Push the "add_to_cart" event data to the data layer
window.dataLayer.push({
'event': 'add_to_cart',
'ecommerce': {
'add': {
'items': [{
'item_id': prod_sku,
'item_name': prod_name,
'price': prod_price,
'currencyCode': 'USD'
Metadata
Metadata
Assignees
Labels
No labels