Skip to main content
The WordPress integration enables two-way content flow and attribution tracking between WisePilot and your WordPress/Elementor website.

Prerequisites

  • WordPress site with Elementor installed
  • Advanced Custom Fields (ACF) plugin installed
  • Access to theme files or plugin directory

Connecting WordPress

  1. Navigate to Integrations → WordPress
  2. Enter your WordPress site URL
  3. Authenticate with your WordPress credentials or API key
Once connected, you can import existing content and publish new content from WisePilot.

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 to functions.php:
function enqueue_attribution_tracker() {
  wp_enqueue_script(
    'attribution-tracker',
    get_template_directory_uri() . '/elementor/utils/attribution-tracker.js',
    array(),
    '1.0.0',
    true
  );
}
add_action('wp_enqueue_scripts', 'enqueue_attribution_tracker');

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.
  1. Go to Integrations → WordPress
  2. Click “Check ACF Fields”
  3. Review which fields exist vs. missing
  4. 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:
AttributeValueExample
data-cta-idUUIDa1b2c3d4-...
data-cta-positionPosition codeabtf, exit, footer, sidebar
data-asset-content-idContent IDCNT-123

Testing

  1. Visit a page with CTAs
  2. Inspect CTA links — verify cr_attrib parameter is appended
  3. Verify UTMs are appended to destination URLs
  4. Check browser console for window.getAttributionId function

Troubleshooting

CTAs not getting cr_attrib

  • Verify attribution script is loaded (check browser console)
  • Verify CTA elements have [data-cta-id] or .cr-cta class
  • 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)