Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function yourFunctionForButtonClick() {
- //Your code to get pid/count value, put into a javascript array.
- //new code to provide data to GTM
- dataLayer.push({
- event: 'newPidProvided',
- pidcountvalue: pid + ',' + count
- });
- //Your code to reset pid with '', reset count with 1'.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement