Before you begin, make sure you have:
- A LeadsWithDemos account.
- A LeadsWithDemos site from which you’ll retrieve the LeadsWithDemos Script Code.
- Optionally, a testing environment.
For this tutorial, a WordPress testing website is used.
Step-by-Step Instructions:
Step 1: Access Your LeadsWithDemos Site
- Navigate to https://app.leadswithdemos.com/sites.
- Select the relevant LeadsWithDemos site.
- If you don’t have a site yet, please follow the guide “How to Create a Free LeadsWithDemos Site”.
- Once you’ve selected the site, you will land on its dashboard.
Step 2: Access the Tracking Script
- Go to the Site section.
- Locate and click the “Tracking” tab.
- Click the “LWD Script Code” button. A popup window will appear containing the tracking code.
Step 3: Copy the Code
- In the popup, you’ll see two code options. Use either one based on your preference:
- The first can be inserted directly into your site’s <body> tag.
- The second is designed for installation via Google Tag Manager.
- Click to copy your preferred code.
- Note: This code is required for displaying forms and capturing behavioral data, such as form submissions and user interactions.
Step 4: Integrate the Code
- Log in to your WordPress admin.
- Navigate to Divi > Theme Options.
- Open the Integration tab and find “Add code to the <body>”.
- Paste the tracking script into the provided field.
- Click “Save Changes”.
Once saved, the LeadsWithDemos tracking code will be active, enabling popups and starting the process of capturing emails. If you need additional assistance, don’t hesitate to reach out for support!