SwapTopic 5 Minute Setup
Back to Documentation
Quick Reference
- Quick Start Guide
- Step 1: Getting Your Embed Code
- Step 2: Adding the Embed Code
- Shopify
- WordPress
- Squarespace
- Wix
- Webflow
- Step 3: Creating Your First Personalization
- Step 4: Testing Your Personalization
- Common Questions
- How can I find the right HTML elements to personalize?
- Will SwapTopic slow down my website?
- Is there any code modification required?
- Next Steps
Follow these simple steps to add dynamic content personalization to your website in under 5 minutes – no coding skills required.
Quick Start Guide
- Create your SwapTopic account
- Add your website domain
- Install the SwapTopic script
- Create your first personalization
- Test and publish
Step 1: Getting Your Embed Code
After signing up, you’ll find your unique embed code in your dashboard under Settings. It looks like this:
<script src="https://cdn.swaptopic.com/sites/your-unique-site-id/script.js"></script>
Step 2: Adding the Embed Code
Shopify
- From your Shopify admin, go to Online Store > Themes
- Click Actions > Edit code
- Open the
theme.liquid
file in the Layout folder - Paste your SwapTopic script just before the closing
</head>
tag - Click Save
WordPress
- Log in to your WordPress admin
- Go to Appearance > Theme Editor
- Select your active theme’s
header.php
file - Add your SwapTopic script just before the closing
</head>
tag - Click Update File
Squarespace
- Log in to your Squarespace account
- Go to Settings > Advanced > Code Injection
- Paste your SwapTopic script in the Header section
- Click Save
Wix
- Log in to your Wix account
- Go to the Wix Editor for your site
- Click Settings (the gear icon) > Custom Code
- Click + Add Custom Code
- Paste your SwapTopic script
- Set placement to Head
- Click Apply
Webflow
- Open your Webflow project
- Go to Project Settings > Custom Code
- Paste your SwapTopic script in the Head Code section
- Click Save Changes and publish your site
Step 3: Creating Your First Personalization
- In your SwapTopic dashboard, go to Personalizations
- Click + Add New Page and enter the page path (e.g.,
/
for homepage) - Click + Add Rule and select First Time Visitor
- Enter the HTML element you want to personalize (e.g.,
h1
) - Enter your personalized content
- Click Save
Step 4: Testing Your Personalization
- Go to Settings tab
- Enable Preview Mode
- Click the Preview Site button
- Use the preview panel to see your personalizations in action
Common Questions
How can I find the right HTML elements to personalize?
Use the SwapTopic Setup Mode:
- Go to Settings > Site Setup
- Click any element on your site to copy its selector
- Paste the selector into your personalization settings
Learn more about selecting elements for personalization.
Will SwapTopic slow down my website?
No, SwapTopic is designed to be lightweight and fast. The script is under 15KB and loads asynchronously, so it won’t impact your page load speed.
Is there any code modification required?
None! Simply add the script to your site’s header, and you can manage all personalizations through our dashboard.
Next Steps
Once you’ve completed the basic setup:
- Create different variations to test what works best
- Set up conversion tracking to measure results
- Create user segments for targeted personalization
- Explore personalization variables for dynamic content