Guided landing pages do not make it easy to add a script, for instance if you need to add some Google adwords or any other type of conversion code "on the fly".
Here are the methods I have found so far, with some pros-and cons.
Method | Using | Pros | Cons |
---|---|---|---|
Add the script to the LP template with some variables to activate it and set parameters |
|
|
|
Add the script to a web file (stored in Marketo if necessary), then add a variable to the LP template and implement a <script src="${scripturl}"> within the template. |
|
|
|
Add the script to a web file (stored in Marketo if necessary), then add a token to the LP template and implement a <script src="{{my.token}}"> within the template. |
|
|
|
Add a snippet container at right place in the LP template, Create a snippet that includes the script (one snippet per different script or series of scripts) and let the users add the snippet script to the LP as needed |
|
|
|
Create a variable on the LP, set it to "allowHTML=true" and let the user paste the script into it |
|
|
|
Add one or more scripts to web files (stored in Marketo if necessary), then add a variable to the LP template. Have the user to add the URI of the web files in this variable. Then have a JS code that injects the code from the files in the landing page at runtime. |
|
|
|
Add one or more scripts to web files (stored in Marketo if necessary), then add a program / folder token. Have the user to add the URI of the web files in this token. Then have a JS code that injects the code from the files in the landing page at runtime |
|
|
|
I would love to read some feedbacks, ideas and experience. We will run some tests on the best ideas and summarize it here.
-Greg