How to Scrape Data Using Chrome Dev Tools and GTM [Quick Tip]

  Рет қаралды 27,494

MeasureSchool

MeasureSchool

Күн бұрын

Пікірлер: 28
@Jean13fr
@Jean13fr 5 жыл бұрын
Thank you for another great tip ! You are the best Julian.
@lacascadaobregon
@lacascadaobregon 2 жыл бұрын
Please post more of this content Cheers, from USA
@mareklukaszuk2280
@mareklukaszuk2280 5 жыл бұрын
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?
@manoj081182
@manoj081182 2 жыл бұрын
What are the ways to restrict the data from scrapping. If you can help on this.
@rish1102
@rish1102 4 жыл бұрын
Your videos have helped a lot sir! You're the best
@MeasureSchool
@MeasureSchool 4 жыл бұрын
Happy to help! Thanks for the feedback.
@marshallsr9126
@marshallsr9126 4 жыл бұрын
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
@arnopisspot5115
@arnopisspot5115 5 жыл бұрын
You are the man Julian. Thank you.
@daksh7198
@daksh7198 Жыл бұрын
How to pull form data form inspect tab and paste in to a textbox in a webpage
@davidsheridan6400
@davidsheridan6400 5 жыл бұрын
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!
@MeasureSchool
@MeasureSchool 5 жыл бұрын
might be that your element loads after the DOM Ready and therefore cannot be pulled
@mariobreljak1230
@mariobreljak1230 5 жыл бұрын
Is there any way to scrape the info from the popup? :)
@TheFantayo
@TheFantayo 5 жыл бұрын
What if there's gonna be two products on the same page?
@ingevanwesterhuis2319
@ingevanwesterhuis2319 4 жыл бұрын
Thank you so much, this was life-saving! :)
@luisaleers
@luisaleers 5 жыл бұрын
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?).
@TheFantayo
@TheFantayo 5 жыл бұрын
Great tip but I can do this only with text... What about text inside Button?
@ibrahimmuthanna0
@ibrahimmuthanna0 5 жыл бұрын
It's the same, it can also be done with button and the innerHTML of a button is the text inside the button tag
@TheFantayo
@TheFantayo 5 жыл бұрын
@@ibrahimmuthanna0 Didn't work for me yet. Got to try again if you say it should work
@TheFantayo
@TheFantayo 5 жыл бұрын
@@ibrahimmuthanna0 .value worked perfect tnx for this tip
@ibrahimmuthanna0
@ibrahimmuthanna0 5 жыл бұрын
You are very welcome. ​good you caught it before I deleted because I had thought that I need to check it before replying.
@williefour
@williefour 5 жыл бұрын
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!
@MeasureSchool
@MeasureSchool 5 жыл бұрын
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.
@TheDakson
@TheDakson 5 жыл бұрын
Thanks, useful as always :)
@vitusstockholm4984
@vitusstockholm4984 2 жыл бұрын
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
@thibautnyssens7359
@thibautnyssens7359 5 жыл бұрын
Only works on websites your own isn't it?
@MeasureSchool
@MeasureSchool 5 жыл бұрын
The script works on any website, however you can't get your GTM code on the website you don't have access to.
@anderson_roseno
@anderson_roseno 6 ай бұрын
Wonderful, I need tais solution❤
@goranpismestrovic227
@goranpismestrovic227 5 жыл бұрын
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.
How to link Google Ads to Google Analytics [Quick Tip]
4:27
MeasureSchool
Рет қаралды 68 М.
5 Advanced JavaScript Techniques for GTM
15:34
MeasureSchool
Рет қаралды 22 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
How to use Chrome Developer Tools as a Marketer
12:43
MeasureSchool
Рет қаралды 10 М.
DOM element variable in Google Tag Manager
17:02
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 20 М.
5 JavaScript topics to learn for Google Tag Manager
14:54
Analytics Mania - Google Analytics & Tag Manager
Рет қаралды 16 М.
How to Track Contact Form 7 with Google Tag Manager
13:20
MeasureSchool
Рет қаралды 45 М.
3 ways to use the google_tag_manager JavaScript object
15:19
MeasureSchool
Рет қаралды 8 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН