Adding Content Variations
This guide provides detailed instructions for setting up and configuring Content Variations in PersonalizeWP, including integration with other WordPress elements and technical best practices.
Setting Up Content Variations
Step 1: Add the Content Variations Block
- Edit any page or post in WordPress
- Click the '+' button to add a new block
- Search for "Content Variations" in the block selector
- Select the Content Variations block to add it to your page
The Content Variations block will appear with default setup options.
Step 2: Configure Your First Variation
- In the Content Variations block, click the "Add Variation" button
- Enter a descriptive name for your variation (e.g., "New Visitors")
- Add your content using the WordPress editor:
- Text
- Images
- Videos
- Other blocks (including other WordPress blocks)
- Save your variation
Step 3: Set Up Variation Rules
Rules determine when each variation will be shown to visitors.
- For your variation, click "Add Rule"
- Select a segment from the dropdown or create a new one
- Configure the conditions for this rule:
- Select your targeting criteria (location, device, etc.)
- Set specific values for each criterion
- Combine multiple conditions with AND/OR logic if needed
- Set a priority level if you have multiple rules that could match simultaneously
- Save your rule
Step 4: Add Additional Variations
Repeat steps 2-3 to create more variations for different segments:
- Click "Add Variation" again
- Name and configure the new variation
- Add appropriate content
- Set up rules for when this variation should display
- Continue adding variations as needed
Step 5: Configure Fallback Content
Fallback content ensures all visitors see something appropriate, even if they don't match any specific rules.
- Add a variation labeled "Default" or "Fallback"
- Create content that works for all visitors
- Don't add any rules to this variation
- Make sure this variation is positioned last in your variation list
Step 6: Preview and Test
Before publishing, test your variations to ensure they work as expected:
- Use the preview mode to see how variations appear for different segments
- Test on different devices and from different locations if possible
- Check that your fallback content displays correctly when no rules match
Advanced Configuration Options
Using AND/OR Logic in Rules
Create complex rule combinations:
- Click "Add Condition" within a rule to add multiple conditions
- Select "AND" to require all conditions to be true
- Select "OR" to require any condition to be true
- You can combine multiple AND/OR conditions for sophisticated targeting
Setting Display Time Limits
Make variations appear only during specific time periods:
- In the rule settings, add a time-based condition
- Set start and end dates/times for when the variation should be active
- Specify time zone if needed
- The variation will only display during this time window
Integration with Other WordPress Elements
The Content Variations block can be combined with any standard WordPress blocks or custom blocks to create personalised content experiences:
Combining with Standard WordPress Blocks
You can include any WordPress block inside your content variations:
- Add standard blocks like Paragraphs, Headings, Buttons, or Images inside your variation
- Each segment will see the appropriate blocks based on the variation rules
- This allows complete flexibility in creating personalised layouts and content
[Content Variation Block] [Variation 1 - New Visitors] [Heading Block]Welcome to Our Site![/Heading Block] [Paragraph Block]We're glad you found us. Here's what we offer...[/Paragraph Block] [Button Block]Explore Our Products[/Button Block] [/Variation 1] [Variation 2 - Returning Visitors] [Heading Block]Welcome Back![/Heading Block] [Paragraph Block]We've missed you. Check out what's new...[/Paragraph Block] [Button Block]Continue Shopping[/Button Block] [/Variation 2] [/Content Variation Block]
Using with Third-Party Blocks
Content Variations work with many third-party blocks that are compatible with the Block Editor:
- Add the third-party block inside your content variation
- Configure the block settings as needed for each segment
- Test thoroughly to ensure compatibility
Performance Considerations
Caching Compatibility
When using Content Variations with caching plugins, proper configuration is essential to ensure personalised content displays correctly. PersonalizeWP requires specific cache exclusions to function properly.
For detailed instructions on configuring your caching plugin for compatibility with PersonalizeWP, please refer to our dedicated help article on Caching Exclusions.
The guide provides specific configuration steps for popular caching plugins to ensure your personalised content works correctly while maintaining the performance benefits of caching.
Resource Management
For resource-intensive pages:
- Prioritise variations for your most valuable segments
- Consider using simpler variations for less common segments
- Monitor page load times after implementing variations
- Use the PersonalizeWP performance settings to optimise delivery
Developer Integration
Working with the PersonalizeWP API
For developers looking to integrate with PersonalizeWP programmatically, please refer to the official API documentation in the PersonalizeWP Knowledge Base. The Knowledge Base provides comprehensive details on:
- Available API endpoints
- Authentication methods
- Function references
- Code examples and use cases
- Best practices for integration
The API documentation will guide you through implementing personalised experiences beyond the standard block editor, allowing for custom theme integration and advanced personalisation scenarios.
For the most up-to-date information and examples, visit the PersonalizeWP API Documentation in our Knowledge Base.
Editor Compatibility
Currently, PersonalizeWP Content Variations are designed to work with:
- WordPress Block Editor (Gutenberg)
Support for popular page builders such as Elementor, Beaver Builder, and Divi is planned for future releases. For the most up-to-date compatibility information, please refer to the PersonalizeWP documentation.
Troubleshooting Common Issues
Rules Not Triggering Correctly
If your variations aren't displaying as expected:
- Check rule priority settings
- Verify segment definitions are correct
- Check that your targeting conditions are configured properly
- Ensure your browser is accepting cookies, as they're necessary for visitor tracking
Conclusion
With this technical implementation guide, you should be able to set up and configure Content Variations effectively on your WordPress site.
If you encounter issues not covered in this guide, please contact our support team for assistance.