question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about the `send_to` attribute

See original GitHub issue

It’s not clear for me from the docs whether I should provide send_to attribute in the object passed to sendDataToGTM.

Original snippet I got from google:

gtag('event', 'conversion', {'send_to': 'my-gta-id/some-randomly-looking-string'});

So I guess my question is, should the code look like this:

sendDataToGTM({
  event: "conversion",
  send_to: "my-gta-id/some-randomly-looking-string",
  currency: order.currency,
  value: order.value,
});

or should I leave out send_to as it’s not a custom attribute and the hook is already handling this:

sendDataToGTM({
  event: "conversion",
  currency: order.currency,
  value: order.value,
});

or maybe I should place send_to inside config object passed to the init function call?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zorzystycommented, Sep 23, 2020

That’s awesome 😃 Thanks for the reply. Appreciate it!

0reactions
elgorditosalserocommented, Sep 24, 2020

I’m closing for now, if you have more info or updates let me know 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

python 3.5.2 UdpServer sendto() error: module 'socket' has no ...
statement: The AttributeError is raised since the method sendto() is to be called from instances of the class socket.socket (as you have in...
Read more >
How can I set Send As attribute to a DL synced with Azure AD?
Dear All,. I have an AD synced with Azure AD via AD Connect (one way sync) and I want to set the Send...
Read more >
Triggered Send Subscriber Attributes - Object reference not ...
I can't seem to see where the problem is occurring -- can YOU see the problem? public void TriggeredSendEmailAll(string subKey, string subEmail, ...
Read more >
how to send "report attribute"? - Silicon Labs Community
Hello @YK, i have found if i don't use"emberAfFillCommandGlobalServerToClientReportAttributes"and "emberAfSendCommandUnicast",the EmberZnet ...
Read more >
How Can I Get An Attribute From A Player To Send To The ...
I'm new to PlayFab & PlayFab API, I'm trying to do matchmaking for my P2P multiplayer game, I created a match tikect successfully,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found