Legacy Embed Code
Information about the legacy embed code implementation for SEOFlow.
Overview
The legacy embed code is maintained for backward compatibility with older implementations. While we recommend using the new implementation, this guide covers the legacy approach.
Legacy Implementation
Code Structure
<script>
(function(s,h,o,p,f,l,y){
s['SEOFlowObject']=f;
s[f]=s[f]||function(){
(s[f].q=s[f].q||[]).push(arguments);
};
s[f].l=1*new Date();
l=h.createElement(o);
y=h.getElementsByTagName(o)[0];
l.async=1;
l.src=p;
y.parentNode.insertBefore(l,y);
})(window,document,'script','https://cdn.shopflowapps.com/seoflow.js','seoflow');
</script>
Implementation Steps
-
Add to Theme
- Open
layout/theme.liquid
- Locate
</body>
tag - Insert code before tag
- Open
-
Configure Settings
- Set store ID
- Configure options
- Test implementation
Migration Guide
Why Migrate?
- Better performance
- New features
- Improved reliability
- Better support
Migration Steps
-
Backup Current Implementation
- Document current setup
- Export redirect rules
- Test current functionality
-
Implement New Version
- Remove legacy code
- Add new implementation
- Verify functionality
-
Testing
- Test all redirects
- Check performance
- Verify analytics
Legacy Features
Supported Features
- Basic redirects
- Simple wildcards
- Status tracking
- Basic analytics
Limitations
- No advanced patterns
- Limited performance
- Basic error handling
- No real-time updates
Troubleshooting
Common Issues
-
Script Loading
- Check network requests
- Verify CDN access
- Clear browser cache
-
Redirect Issues
- Verify store ID
- Check redirect rules
- Test URL patterns
-
Performance
- Monitor load times
- Check resource usage
- Review redirect count
Support
Legacy Support
- Limited technical support
- Basic documentation
- Community forums
Upgrade Path
- Migration assistance
- Technical guidance
- Implementation support
Best Practices
Maintenance
- Regular testing
- Monitor performance
- Update documentation
Security
- Use HTTPS
- Validate redirects
- Monitor usage
Optimization
- Minimize redirects
- Use appropriate patterns
- Regular cleanup