Digioh provides several different JS snippet options for you to choose from based on your needs. In general, we recommend using the Speed Embed Code, placed directly in your website HTML, but here are the details on all available options:
Inline Embed Code
Digioh asynchronously loads a “boostrapper”, and waits for the DOM Ready event before proceeding. This is recommended if you have inline boxes “above the fold” on your page, because they will load quickly. However, if you have ads or other tags that are also loading at DOM Ready, then Digioh will compete with them for resources. Also, the activation process is generally visible to performance tools such as Page Speed Insights, so if page load speed is a critical KPI, consider the Speed Embed instead.
Pros: simplest consistent deployment, loads inline boxes quickly for best user experience
Cons: may impact the download and activation of other tags on your site, e.g. ads.
Speed Embed Code
The Speed Embed Code has built-in intelligence that activates Digioh on an as-needed basis. Specifically, Digioh will activate and download only after some sort of user interaction with the page. On subsequent pageviews, Digioh will load immediately on DOM Ready from cache.
Pros: Typically, Digioh will download and activate only after everything else has downloaded, and cause the smallest impact to page load time. Also, it stays “off the radar” for most page speed analysis tools (e.g. Google Page Speed Insights).
Cons: This is not well suited for websites with homepage or landing pages that have Digioh forms or onClick trigger buttons above the fold. It’s mostly an issue on mobile devices, where there is no mouse movement to trigger Digioh activation.
Lightning Embed Code
Cons: verbosity of the tag can cause problems when copying and pasting, it can be broken by pasting into an email, for example.
Google Tag Manager Embed Code
This is a tag specifically written for Google Tag Manager (GTM), it mirrors the method used by GTM for Google Analytics. There are uncommon but possible GTM trigger configurations that sometimes cause problems for Digioh activation. This tag guarantees robustness in GTM.
Pros: most robust option for GTM
Cons: GTM is commonly blocked by Ad Blockers, which prevents Digioh from activating; while GTM is convenient, we no longer recommend it for Digioh tag deployment if alternatives are possible.
Speed GTM Embed Code
GTM-safe version of Speed Embed Code.
Pros: Safe for GTM with all benefits of Speed Embed
Cons: Same as GTM Embed Code