Scrape data from website when contact gerates a "page view" event

Hey all, I’m new to Hubspot and have a question.

When a contact visits our website, Hubspot generates a page view activity. Can I scrape the webpage title and record it in a property on the contact object?

For example, if they visit a page with the title of “Big League Baseball Glove” is there a way to store that title in a contact property called Last Product View?

Last Product View = Big League Baseball Glove

Thanks so much for your time and consideration,

Hi, @matt72 :waving_hand: Welcome to our community! Thanks for the great question. My gut says we can solve this by using `document.title` to grab the title — MDN | Document: title

Hey @MatthiasWeber @albertsg @Indra, do you have a simple JavaScript example or tips on how you might handle a project like this you can share with @matt72?

Thank you very much for taking a look! — Jaycee

Hey Jaycee,

That should get me pointed in the right direction. I’m not a programmer but I have fellow employees who are. I will run this by them. Thanks for your help!