Prerequisites
- WordPress site with Elementor installed
- Advanced Custom Fields (ACF) plugin installed
- Access to theme files or plugin directory
Connecting WordPress
- Navigate to Integrations → WordPress
- Enter your WordPress site URL
- Authenticate with your WordPress credentials or API key
Content Import
Import your existing WordPress content into WisePilot:- Blog posts and pages are imported with their metadata
- Content is analyzed for performance optimization
- Existing content can be refreshed or repurposed using AI generation
Attribution Script Deployment
Deploy the attribution tracking script to enable CTA tracking and conversion attribution.Option A: Theme Functions
Add tofunctions.php:
Option B: Plugin
Create a simple plugin or add to an existing plugin.Option C: Elementor Custom Code
Add in Elementor → Settings → Custom Code → Footer.ACF Field Setup
WisePilot uses Advanced Custom Fields to store CTA data on your WordPress pages.- Go to Integrations → WordPress
- Click “Check ACF Fields”
- Review which fields exist vs. missing
- Create missing fields automatically or manually
Required Fields
Each CTA position (abtf, exit, footer, sidebar) needs 13 fields:{position}_headline_text, {position}_subheadline_text, {position}_button_text, {position}_cta_subtext, {position}_cta_url, {position}_main_image, {position}_cta_id, {position}_utm_source, {position}_utm_medium, {position}_utm_campaign, {position}_utm_content, {position}_utm_term, {position}_cta_full_url
CTA Data Attributes
In Elementor, CTA elements need these data attributes for tracking:| Attribute | Value | Example |
|---|---|---|
data-cta-id | UUID | a1b2c3d4-... |
data-cta-position | Position code | abtf, exit, footer, sidebar |
data-asset-content-id | Content ID | CNT-123 |
Testing
- Visit a page with CTAs
- Inspect CTA links — verify
cr_attribparameter is appended - Verify UTMs are appended to destination URLs
- Check browser console for
window.getAttributionIdfunction
Troubleshooting
CTAs not getting cr_attrib
- Verify attribution script is loaded (check browser console)
- Verify CTA elements have
[data-cta-id]or.cr-ctaclass - Check that links are absolute URLs or same-origin paths
ACF fields not saving
- Verify ACF plugin is active
- Check field group is assigned to correct post type
- Verify field names match exactly (case-sensitive)