No results found. Try again with different words?
Search must be at least 3 characters.
- How to deliver a lead magnet through your confirmation page or thank you page? – Using Double Opt-in
- How to Create a Full screen popup in Convert Pro?
- How to Disable Call-to-actions for Subscribers?
- Introducing the Honeypot field in Convert Pro
- Disable cookies using Cookiebot plugin with Convert Pro for GDPR regulations
- How to create Multilingual call-to-action with WPML
- How to Display a YouTube Video in a Convert Pro Call-to-Action?
- Convert Pro Supports GDPR Regulations
- How to auto close call-to-action in Convert Pro
- How to Trigger Convert Pro Popup based on Page Visits?
- How to Show a Call-to-action to Users who have Subscribed through Particular Call-to-action?
- How to Show or Hide a Call-to-action only after a User has seen a specific Call-to-action in Convert Pro?
- How to Trigger a Popup when a particular Cookie is set?
- How Can I Create an Ad Block Detection Popup with Convert Pro?
- Schedule Your Call-to-action in Convert Pro
- Trigger a call-to-action when a Class or ID appear in Viewport
- How to Trigger a Call-to-action after few seconds?
- How to Trigger a Call-to-Action after a Blog Post?
- Troubleshooting Guide: Google Analytics Integration
- How to Setup Convert Pro custom Events in Google Analytics 4 property
- Authorize Convert Pro to view Google Analytics 4 data
- Display Call-to-Action Inside the Post/Page Content
- How to Add Dynamic Tag Support for the Autoresponder?
- How to Enable Form Field Validation?
- How to Change the Slug of Popup? – Convert Pro
- What is MX Record Validation For Email in advanced settings?
- Adding the Google reCaptcha form field in Convert Pro
- How to Set Cookie Name When a Particular Call-to-action is Submitted or Closed?
- How to display call-to-action based on URL parameter
- Introduction to Rules sets in Launch settings of Convert Pro
- How to Integrate an Elementor Form in a Convert Pro call-to-action?
- How to Create a Language Specific Popup in Convert Pro?
- How to A/B Test Two or More Call-to-Actions in Convert Pro?
- How to Add Custom CSS/HTML code/shortcode to a Call-to-action in Convert Pro?
- Understanding the Email Notification Settings in Convert Pro
- How to Setup Convert Pro Events in Google Tag Manager
- Google Analytics Integration with Convert Pro
- Shortcut Keys For Customizer Operations
- How to Set Cookie Name When a Particular Call-to-action is Submitted or Closed?
- How to deliver a lead magnet through your confirmation page or thank you page? – Using Double Opt-in
- How to Show or Hide a Call-to-action only after a User has seen a specific Call-to-action in Convert Pro?
- Where can I find the ID (style ID) of the call-to-action in Convert Pro?
- How to Trigger a Popup when a particular Cookie is set?
- Convert Pro Supports GDPR Regulations
- How to Disable Google Fonts in the Frontend?
- How to Track Users Depending on their Location or Country? (Geo Location or GeoIP Tracking)
- How to Offer Downloadable Files or Lead Magnets after Successful Form Submission?
- Convert Pro Email Notification Filters
- Filter to Add a New Custom Font
- How to Target Users based on the Device they use?
- How to Disable Google Fonts in the Frontend?
- How can I disable a Call-to-action on Mobile Devices?
- Show or Hide Call-to-action to Logged in and First time users
- Working with Referrer Detection in Convert Pro
- How to Display a Call-to-action when a Specific Product is Added to the Cart?
- Troubleshooting Guide: Google Analytics Integration
- How to Setup Convert Pro custom Events in Google Analytics 4 property
- Authorize Convert Pro to view Google Analytics 4 data
- How to Integrate Convert Pro with FluentCRM?
- How to Integrate Convert Pro with SendFox?
- How to Integrate MaxMind Geolocation in Convert Pro?
- How to Integrate Convert Pro with MailWizz?
- How to Integrate Convert Pro with Moosend?
- How to Integrate Convert Pro with SendGrid?
- Filter to Add a New Custom Font
- How to Pass Current Page URL as a Value to Hidden Field of the Form?
- How to White Label Convert Pro?
- How to Create a Language Specific Popup in Convert Pro?
- How to Clear Cache for Call-to-Actions in Convert Pro?
- How to Use the Advanced Script Addon in Convert Pro?
- How to Trigger a Call-to-action only on Woo-commerce order received page?
- How to Display a Call-to-action when a Specific Product is Added to the Cart?
- How to Add Custom Conditions to Display a Call-to-action?
How to display call-to-action based on URL parameter
The cp_pro_target_page_settings filter allows you to display call-to-action based on GET parameter in your URL.
Following is the sample code which can be used to display call-to-action based on UTM parameter in URL. You can add this code to your theme’s functions.php.
/** * Display call-to-action based on URL parameter */ function cpro_check_url_parameter( $display, $style_id ) { // Replace 93 with your style ID if( '93' == $style_id ) { // Replace "utm" with your GET parameter from URL, replace "facebook" with your parameter value if( isset( $_GET['utm'] ) && 'facebook' == $_GET['utm'] ) { $display = true; } else { $display = false; } } return $display; } add_filter( 'cp_pro_target_page_settings', 'cpro_check_url_parameter', 10, 3 );
Where can I find the ID of the call-to-action?
Open Convert Pro dashboard and click on the info icon seen under the Insight column in line with the call-to-action name.
![Info Button in Convert Pro Dashboard](https://www.convertpro.net/wp-content/uploads/2018/01/info-button-in-Convert-Pro-dashboard-2-1024x601.jpg)
You’ll find the ID as highlighted in the screenshot below.
![CTA ID in Convert Pro Information](https://www.convertpro.net/wp-content/uploads/2018/01/CTA-ID-in-Convert-Pro-info-2-1024x601.jpg)
You can also see the ID in the URL when you open the particular call-to-action in the editor. Refer screenshot.
![Call To Action ID in URL](https://www.convertpro.net/wp-content/uploads/2018/01/CTA-ID-in-URL-2-1024x593.jpg)
We don't respond to the article feedback, we use it to improve our support content.