Title: Get conversion path
Last modified: March 13, 2023

---

# Get conversion path

 *  [arisatbooth](https://wordpress.org/support/users/arisatbooth/)
 * (@arisatbooth)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/get-conversion-path/)
 * Hi! I am trying to get the conversion paths for our forms.
   I was able to create
   a shortcode however it does not contain the path where the user submitted the
   form.
 * Here’s my shortcode:
 *     ```wp-block-code
       function conversion_path_to_crm() {
   
               if (isset($_COOKIE['_cp'])) {
   
                   $paths = ltrim($_COOKIE['_cp'], '|');
   
                   if ($paths != '') {
   
                       $paths = explode('|', $paths);
   
                       $sliced = array_slice($paths, -5);
   
                       $final_path = '';
   
                       foreach ($sliced AS $path) {
   
                           $path = explode(',,', $path);
   
                           $path = $path[0] . ' - ' . $path[1] . '<br/>';
   
                           $final_path .= $path;
   
                       }
   
                        return $final_path;
   
                   }
   
               }
   
           }
   
           add_shortcode('BP_CONVERSION_PATH', 'conversion_path_to_crm');  
       ```
   
 * I hope someone will help me on this.
 * Thanks in advance!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fget-conversion-path%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘Get conversion path’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [path](https://wordpress.org/support/topic-tag/path/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 0 replies
 * 1 participant
 * Last reply from: [arisatbooth](https://wordpress.org/support/users/arisatbooth/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/get-conversion-path/)
 * Status: not resolved