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

Trying to send a purchase event #17

Open
benjaminclot opened this issue Oct 26, 2024 · 1 comment
Open

Trying to send a purchase event #17

benjaminclot opened this issue Oct 26, 2024 · 1 comment

Comments

@benjaminclot
Copy link

Hi,
I've been trying to send a purchase event and haven't been able to see them in the realtime event debugger. I think it has something to do with the items List because sending this works

gtm.push('purchase',
  parameters: {
    'transactionId': '12345',
    'affiliation': 'Google Store',
    'currency': 'EUR',
    'value': 0.00,
    'shipping': 0.00,
    'tax': 0.00,
  }
);

whereas sending this doesn't (and doesn't show any error/warning)

gtm.push('purchase',
  parameters: {
    'transactionId': '12345',
    'affiliation': 'Google Store',
    'currency': 'EUR',
    'value': 1.00,
    'shipping': 0.00,
    'tax': 0.00,
    'items': [{
      'itemId': '12345',
      'itemName': 'Fluffy Pink Bunnies',
      'itemCategory': 'Apparel',
      'itemBrand': 'Google',
      'itemVariant': 'Pink',
      'price': 1.00,
      'quantity': 1,
    }]
  }
);

Any help would be greatly appreciated!

@Heewookji
Copy link
Owner

It seems to me that this isn't a gtm issue, but rather that ga event doesn't support the property.
I'll check and if it's true I'll edit the package documentation.

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

2 participants