SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2014
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    best way to pass an object (json) from google tag manager to a function

    Hi,

    I'm using GTM to implement a 3rd party tracking code. When this is called JSON is returned and using console.log I can see that this JSON is been returned fine.

    What is the best way to send this data to a function back on my site? Once its received back I just run it through mustache with a template to return html to display.

    Many thanks

  2. #2
    SitePoint Member
    Join Date
    May 2014
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry forgot to say, at the moment im just using a global variable defined in GTM that I access in my code, but I'm pretty sure this isn't a very good way to do it.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •