Thank you for another great tip ! You are the best Julian.
@lacascadaobregon2 жыл бұрын
Please post more of this content Cheers, from USA
@mareklukaszuk22805 жыл бұрын
Great tips! But I'm still struggling because I try to track a Single page web app. Can we use this method with other events than DOM?
@manoj0811822 жыл бұрын
What are the ways to restrict the data from scrapping. If you can help on this.
@rish11024 жыл бұрын
Your videos have helped a lot sir! You're the best
@MeasureSchool4 жыл бұрын
Happy to help! Thanks for the feedback.
@marshallsr91264 жыл бұрын
How can I track a section without ID and a Class that isn't unique either?? I mean, other sections share the same Class. Thanks for all your work
@arnopisspot51155 жыл бұрын
You are the man Julian. Thank you.
@daksh7198 Жыл бұрын
How to pull form data form inspect tab and paste in to a textbox in a webpage
@davidsheridan64005 жыл бұрын
Thanks Julian that video was brilliant, I am having an issue though in pulling the Product Title from my site, I successfully tested the method using console in Chrome dev tools to isolate the product title text. document.querySelector("#prx-package-preview > div.prx-package-preview-header > div.prx-package-preview-title").innerHTML "Botanicals Birth Announcement (5x7")" I also setup the custom javascript variable below: function(){ return document.querySelector("#prx-package-preview > div.prx-package-preview-header > div.prx-package-preview-title").innerHTML } However when testing with GTM, the variable value only shows " under DOM Ready Not sure if I am missing something or if there are some troubleshooting things I can check? Thanks!
@MeasureSchool5 жыл бұрын
might be that your element loads after the DOM Ready and therefore cannot be pulled
@mariobreljak12305 жыл бұрын
Is there any way to scrape the info from the popup? :)
@TheFantayo5 жыл бұрын
What if there's gonna be two products on the same page?
@ingevanwesterhuis23194 жыл бұрын
Thank you so much, this was life-saving! :)
@luisaleers5 жыл бұрын
Great tip, one more thing I'd like to see explained is how to best pull this data into GA (e.g. via custom dimension?).
@TheFantayo5 жыл бұрын
Great tip but I can do this only with text... What about text inside Button?
@ibrahimmuthanna05 жыл бұрын
It's the same, it can also be done with button and the innerHTML of a button is the text inside the button tag
@TheFantayo5 жыл бұрын
@@ibrahimmuthanna0 Didn't work for me yet. Got to try again if you say it should work
@TheFantayo5 жыл бұрын
@@ibrahimmuthanna0 .value worked perfect tnx for this tip
@ibrahimmuthanna05 жыл бұрын
You are very welcome. good you caught it before I deleted because I had thought that I need to check it before replying.
@williefour5 жыл бұрын
Hey Julian. Always love watching your videos. I'm not as familiar with utilizing custom javascript tags in tag manager. What is the practical purpose of what you explained in this video? What can we then do with the data? Thank you!
@MeasureSchool5 жыл бұрын
In this video, I am trying to scrape the data from the website, and using these data in 3rd party tracking tools. The more reliable way to do that will be to push them into dataLayer. This scraping method is just the last resort if you can't get the data into dataLayer.
@TheDakson5 жыл бұрын
Thanks, useful as always :)
@vitusstockholm49842 жыл бұрын
i wrote customised cookies consent banner with cookies logic and now its so painfull to connect it to production with gtag and Ga ;() seeing all ur videos :D
@thibautnyssens73595 жыл бұрын
Only works on websites your own isn't it?
@MeasureSchool5 жыл бұрын
The script works on any website, however you can't get your GTM code on the website you don't have access to.
@anderson_roseno6 ай бұрын
Wonderful, I need tais solution❤
@goranpismestrovic2275 жыл бұрын
Thank you Julian! This is very useful! Is this also applicable to HTML data-* Attributes? -> just figured it out. At the end instead of using .innerHTML you can use .getAttribute('data-name-xyz') -> Works like a charm and helps to get some hidden information.