You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 13/umbraco-engage/tutorials/marketing-resources/generic-popup-template.md
+48-18Lines changed: 48 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,18 @@ It is recommended to personalize the popup to make it even more relevant for you
15
15
Install [the client-side script](../../../../analytics/clientside-events-and-additional-javascript-files/additional-measurements-with-our-ums-analytics-scripts/) on your website to benefit from the full functionality of the template.
16
16
{% endhint %}
17
17
18
-
## JavaScript
18
+
## The Template code
19
19
20
20
This popup will not affect the styling of your existing page or website. Some JavaScript is needed to insert the popup HTML in your existing content to apply the popup. The code also includes an option for the visitor to close the popup.
21
21
22
22
Copy and paste the following JavaScript below into Umbraco Engage.
23
23
24
-
```javascript
25
-
var popupTitle ="Popups do convert!"; // The title of your popup.
26
-
var popupText ="The average conversion rate of a popup is 3.09%So, if you have 1000 visitors on a daily basis, each month 927 visitors will convert through this popup."; // The text of your popup.
24
+
<details>
25
+
26
+
<summary>JavaScript</summary>
27
+
28
+
<preclass="language-javascript"><codeclass="lang-javascript">var popupTitle = "Popups do convert!"; // The title of your popup.
29
+
var popupText = "The average conversion; // The text of your popup.
27
30
var popupbuttonText = "I want this!"; // The button text.
28
31
var popupButtonLink = "https://www.umbraco.com/"; // The button link.
29
32
var popupButtonClose = "X"; // The close-button text.
0 commit comments