Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category mistyped #6

Open
iagowp opened this issue Jun 4, 2023 · 0 comments
Open

Category mistyped #6

iagowp opened this issue Jun 4, 2023 · 0 comments

Comments

@iagowp
Copy link

iagowp commented Jun 4, 2023

When I send this:

{
      "transaction_id": "09erdxiojaoidw0e9",
      "affiliation": "Frutacor",
      "value": 78,
      "currency": "BRL",
      "shipping": 18,
      "items": [{
        "id": "product['_id']",
        "name": "product.name",
        "category": "product.category.name",
        "quantity": 1,
        "price": 60
       }]
    }

It suggests me this

gtag('event', 'purchase', {
  'transaction_id': '09erdxiojaoidw0e9',
  'affiliation': 'Frutacor',
  'value': '78',
  'shipping': '18',
  'items': [
    {
      'item_id: 'product%5B%27_id%27%5D',
      'item_name: 'product.name',
      'item_cateogry: 'product.category.name',
      'quantity: '1',
      'price: '60',
    },
  ],
});

item_category is spelled as item_cateogry.
Also, the documentation shows affiliation should be at item level, not purchase level

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant