I'm creating schema for my website using Schema App.
Schema App lets users automatically deploy schema generated in its editor to defined url's in multiple ways, one of which involves javascript generated with an API key unique to my Schema App account.
I've attempted to deploy the javascript on all my HubSpot pages by following HubSpot's instructions.
It should deploy as set out on lines 53-209, which I manually pasted into the header.
Unfortunately, Schema App has no instructional material that relates specifically to HubSpot. HubSpot Support has recommended that I raise my question in the Developers forum.
How do I get Schema App javascript to function in HubSpot?
Schema App was able to deploy the javascript by embedding the javascript directly into the sitewide footer, rather than embedding the "public URL" generated by HubSpot.
Bruce, Dhiraj is saying that a formatting error is preventing the Schema App script from loading successfully. Since you included the JavaScript in a .js file, any browser will read it as JavaScript, so you don't need to put <script> and </script> around it.
I'm happy to help get the script placed correctly. Would you clarify the following?
Could you share a link to Schema App's instructions (it doesn't have to mention HubSpot by name).
What was the support ticket number? (I see that Hub ID 1835920 is associated with that site, but I can't find mention of any support tickets with that account.)
Schema App was able to deploy the javascript by embedding the javascript directly into the sitewide footer, rather than embedding the "public URL" generated by HubSpot.
Hi @Bruce, you are using script tag in a js file, which is a HTML tag.
Instead you can create a custom module of raw HTML field and include schema function file in it. Use that module in your template anywhere you want.