Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function yourFunctionForButtonClick() {
  2.  
  3. //Your code to get pid/count value, put into a javascript array.
  4.  
  5. //new code to provide data to GTM
  6. dataLayer.push({
  7. event: 'newPidProvided',
  8. pidcountvalue: pid + ',' + count
  9. });
  10.  
  11. //Your code to reset pid with '', reset count with 1'.
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement