We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Nov 12, 2020 3:26 PM
I am new in HubSpot Development. Excuse me if my query is very basic.
I have created one onload JavaScript for HubSpot forms on Google Tag Manager & not able to console the information on the HubSpot form console. Any pointers, If I'm missing anything here
Solved! Go to Solution.
Nov 12, 2020 3:55 PM
Heya @vandnakapoor19 ,
If you want to trigger something on window load you would want to use GTM's Window Loaded trigger instead of Page View. With Window Loaded set as the trigger then all you would need is the console.log bit in your script instead of adding an extra window event listener.
If this answer solved your question, please mark it as the solution!
Kickstart your success on HubSpot's CMS with a theme by the HubSpot experts at Lynton
Nov 12, 2020 3:55 PM
Heya @vandnakapoor19 ,
If you want to trigger something on window load you would want to use GTM's Window Loaded trigger instead of Page View. With Window Loaded set as the trigger then all you would need is the console.log bit in your script instead of adding an extra window event listener.
If this answer solved your question, please mark it as the solution!
Kickstart your success on HubSpot's CMS with a theme by the HubSpot experts at Lynton