hume-dev / puppeteer-datalayer

A package to interact with Google Tag Manager's dataLayer through Puppeteer
MIT License
10 stars 2 forks source link

Do you have any examples? #2

Open notflip opened 4 years ago

notflip commented 4 years ago

Do you have any examples or some getting started boilerplate code? I have no idea how to start implementing this. Thank you

rasser commented 3 years ago

Same issue here. It looks very promising, but I am stuck after installation.

azad-derakhshani-GS commented 1 year ago

Same here, this needs a basic guide/Howto at least. Under what name can we import this module after installation? That would already be incredibly helpful to figure the rest out. Unfortunately, the glossary is leaving this crucial part out, so the module can't even be used.

justusbluemer commented 1 year ago

Thanks for the recurring emphasis – I agree that this package definitely needs some examples. I started with a quick one at https://github.com/hume-dev/puppeteer-datalayer/blob/examples/examples/wait-for-event.js and will add a couple more and in-depth examples soon, to the Readme as well.

azad-derakhshani-GS commented 1 year ago

Awesome, thank you! 🙏 In the meantime, I've implemented the tests myself in Playwright, so I don't need this module after all. But I bet the documentation will be very helpful for others!