Custom Code Workflow Get Page URL or Title

Hi all,

We use workflows to send data from hubspot to an external application whenever someone views certain landing pages. We would like to add the url and/or title of that page to the message we send to our external application. Any ideas how we can get this information within the custom code?

Kind regards,

Thomas

Hello @thomas25,

Not a perfect solution, but if you have fewer pages, what you can do is -

  • create page view based workflow to store URL in custom property
  • use custom property in custom code.

Hope this help,

Hello @himanshurauthan,

Thanks for your response. However, we have a large number of pages, so we want to avoid having to set up a workflow for each page.

Well, in that case, you can use the Tracking code API to manually track page views.