Plugin Directory

Changeset 2941402


Ignore:
Timestamp:
07/21/2023 07:02:08 PM (3 years ago)
Author:
dyonic
Message:

Automatically forward UTMs for standard embed

Location:
ryen-wp/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ryen-wp/trunk/README.txt

    r2908566 r2941402  
    66License: GPL 2.0
    77License URI: http://www.gnu.org/licenses/gpl-2.0.txt
    8 Stable Tag: 3.1.10
     8Stable Tag: 3.1.11
    99
    1010== Description ==
     
    2626
    2727== Changelog ==
     28= 3.1.11 =
     29* Automatically forward UTMs for standard embed
     30
    2831= 3.1.10 =
    2932* Fix custom apiHost variable name
  • ryen-wp/trunk/public/class-ryen-public.php

    r2908578 r2941402  
    3434    {
    3535      echo '<script type="module">
    36       import Ryen from "https://cdn.jsdelivr.net/npm/@ryen/js@0.0/dist/web.js";';
     36      import Ryen from "https://cdn.jsdelivr.net/npm/@ryen/js@0.1/dist/web.js";';
    3737      if (
    3838        get_option('excluded_pages') !== null &&
     
    7878  public function add_ryen_container($attributes = [])
    7979  {
    80     $lib_url = "https://cdn.jsdelivr.net/npm/@ryen/js@0.0/dist/web.js";
     80    $lib_url = "https://cdn.jsdelivr.net/npm/@ryen/js@0.1/dist/web.js";
    8181    $width = '100%';
    8282    $height = '500px';
     
    103103    import Ryen from "' . $lib_url . '"
    104104
    105     Ryen.initStandard({ apiHost: "' . $api_host . '", id: "' . $id . '", ryen: "' . $ryen . '", prefilledVariables: { ...window.ryenWpUser } });</script>';
     105    const urlParams = new URLSearchParams(window.location.search);
     106    const queryParams = Object.fromEntries(urlParams.entries());
     107
     108    Ryen.initStandard({ apiHost: "' . $api_host . '", id: "' . $id . '", ryen: "' . $ryen . '", prefilledVariables: { ...window.ryenWpUser, ...queryParams } });</script>';
    106109
    107110    return  '<ryen-standard id="' . $id . '" style="width: ' . $width . '; height: ' . $height . ';"></ryen-standard>' . $bot_initializer;
  • ryen-wp/trunk/ryen.php

    r2908566 r2941402  
    44 * Plugin Name:       Ryen WP
    55 * Description:       Convert more with conversational forms
    6  * Version:           3.1.10
     6 * Version:           3.1.11
    77 * Author:            Ryen
    88 * Author URI:        http://ryen.org/
     
    1717}
    1818
    19 define('RYEN_VERSION', '3.1.10');
     19define('RYEN_VERSION', '3.1.11');
    2020
    2121function activate_ryen()
Note: See TracChangeset for help on using the changeset viewer.