Skip to content

Commit

Permalink
Make CartId required (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbclaudio authored Oct 11, 2023
1 parent e042e00 commit e03a8c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/js/gtm.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,14 @@ document.addEventListener('turbo:load', async (event) => {
options['headers']['Authorization'] = `Bearer ${localStorage.token}`
}

if (!localStorage.mask) {
return
}

axios.post(config.magento_url + '/graphql', {
query:
`mutation StartTransaction(
$cartId: String
$cartId: String!
$gaUserId: String
) {
AddGaUserId (
Expand Down

0 comments on commit e03a8c9

Please sign in to comment.