Published on 08/21/2022
Published by amit
Using js.run_on_activity to execute third party scripts on user interation
Example 1
1 |
[js.run_on_activity src='//js.hs-scripts.com/11111.js' /] |
Example 2
1 2 3 4 5 6 7 |
[js.run_on_activity src='//js.hsforms.net/forms/v2.js' ] hbspt.forms.create({ region: "na1", portalId: "197752700000", formId: "18456b0e-d5d4-4156-a2cc-f6" }); [/js.run_on_activity] |
Example 3
1 2 3 4 5 6 7 8 9 10 |
[js.run_on_activity ] (function(h,o,t,j,a,r){ h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)}; h._hjSettings={hjid:1973589,hjsv:6}; a=o.getElementsByTagName('head')[0]; r=o.createElement('script');r.async=1; r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv; a.appendChild(r); })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv='); [/js.run_on_activity] |