public final class ScriptInjector
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
injectScriptContentIntoHtml(java.lang.String scriptContent,
java.lang.String html)
Injects the supplied OM SDK JS content into the served HTML.
|
public static java.lang.String injectScriptContentIntoHtml(java.lang.String scriptContent, java.lang.String html)
scriptContent
- containing the OM SDK JS service content to be injected into the hidden
tracking web view.html
- of the tag content which should be modified to include the downloaded
OM SDK JS content.java.lang.IllegalArgumentException
- if the supplied HTML is either null or blank.java.lang.IllegalStateException
- if this method has been executed before OM SDK has been
activated.java.lang.IllegalStateException
- if this method has been executed before OM SDK JS is available.