Plugin Directory

Changeset 3840345


Ignore:
Timestamp:
12/02/2026 03:02:38 PM (less than one hour ago)
Author:
dreamagility
Message:

Publish beta 1.1.3-beta.4; retain stable 1.1.2

Location:
dream-agility-tracking-pixel/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • dream-agility-tracking-pixel/trunk/README.txt

    r3839887 r3840345  
    112112        3.2. Enquiry-only forms use the SSA V1 enquiry endpoint in either mode.
    113113
    114 Optional reception confirmation (only on a page containing [dreamagility_check_in_confirmation]):
     114SalesSignal shortcodes: use [salessignal] for the visitor form and [salessignal_confirmation] for email confirmation. Existing [dreamagility_check_in] and [dreamagility_check_in_confirmation] shortcodes remain supported aliases.
     115
     116Optional SalesSignal confirmation (only on a page containing [salessignal_confirmation]):
    115117
    116118The email's opaque confirmation token and the current page's tracking reference code are sent to https://api.dreamagility-coreservices.co.uk/api/reception/confirm, or an administrator-configured trusted API origin. The service validates the token and records the matching test-session attendance. No Forminator form is submitted and no family/lead-sheet data is retrieved. The token is held only in page memory and removed from the address bar; the page applies a no-referrer policy. Configure server/CDN logs and analytics to avoid retaining the da_checkin query parameter.
    117119
    118 Add the shortcode to a dedicated page's saved content and configure that page URL in Dream Agility Reception Settings. Settings > Dream Agility > Reception confirmation allows a trusted staging API origin; HTTPS is required except for local development. Keep the tracking pixel enabled. The page offers retries for temporary failures and tells the visitor when an email link has expired or been replaced. Confirmation is shown only after the API acknowledges the update. Reception remains restricted to Admin test records in the platform.
    119 
    120 Confirmation pages automatically receive noindex, nofollow, noarchive response headers and WordPress robots metadata. Pages using the exact shortcode above are excluded from WordPress core sitemaps, front-end search, generated page lists and rendered classic menus. Existing content and global visibility settings are unchanged. Check custom sitemap/search providers, page-builder links, automatic menu additions and upstream caches separately; public email links still need to remain reachable.
    121 
    122 Optional static QR website check-in (a page containing [dreamagility_check_in], or Custom check-in forms enabled):
    123 
    124 * Collects a visitor's full name, email, phone number, current Dream Agility reference code, license key and a per-submission UUID, and sends them to the configured Reception API origin at /api/reception/website-check-in to create a walk-in lead. The request uses no browser credentials and sends no referrer. This integration uses the same Dream Agility external service and privacy policy listed above.
    125 * Save the public check-in page URL in the platform's Reception Settings, then download its static QR for printing or display it on the platform's Check-in page. The website flow does not send a confirmation email.
    126 * To adapt an existing form, enable Settings > Dream Agility > Website check-in > Custom check-in forms. Add check-in-form to the form or its wrapper, and da-check-in-name, da-check-in-email and da-check-in-phone to one input or field wrapper each. Use one full-name input. This flow handles submission itself, bypassing Forminator submissions, notifications, redirects and ordinary tracking; do not add da-submit, da-tp-* or booking classes.
     120Add the shortcode to a dedicated page's saved content and configure that page URL in SalesSignal settings & families in the Dream Agility platform. Settings > Dream Agility > SalesSignal confirmation allows a trusted staging API origin; HTTPS is required except for local development. Keep the tracking pixel enabled. The page offers retries for temporary failures and tells the visitor when an email link has expired or been replaced. Confirmation is shown only after the API acknowledges the update. SalesSignal remains restricted to Admin test records in the platform.
     121
     122Confirmation pages automatically receive noindex, nofollow, noarchive response headers and WordPress robots metadata. Pages using the exact [salessignal_confirmation] shortcode or its legacy [dreamagility_check_in_confirmation] alias are excluded from WordPress core sitemaps, front-end search, generated page lists and rendered classic menus. Existing content and global visibility settings are unchanged. Check custom sitemap/search providers, page-builder links, automatic menu additions and upstream caches separately; public email links still need to remain reachable.
     123
     124Optional SalesSignal website check-in (a page containing [salessignal], or Custom SalesSignal forms enabled):
     125
     126* Collects a visitor's full name, email, phone number, current Dream Agility reference code, license key and a per-submission UUID, and sends them to the configured SalesSignal API origin at /api/reception/website-check-in to create a walk-in lead. The request uses no browser credentials and sends no referrer. This integration uses the same Dream Agility external service and privacy policy listed above.
     127* Save the public page URL as SalesSignal website page URL in the platform's SalesSignal settings & families, then use Download SalesSignal QR (PNG) for printing or Open SalesSignal to display it. The website flow does not send a confirmation email.
     128* To adapt an existing form, enable Settings > Dream Agility > SalesSignal website check-in > Custom SalesSignal forms. Add check-in-form to the form or its wrapper, and da-check-in-name, da-check-in-email and da-check-in-phone to one input or field wrapper each. Use one full-name input. This flow handles submission itself, bypassing Forminator submissions, notifications, redirects and ordinary tracking; do not add da-submit, da-tp-* or booking classes.
    127129* The tracking pixel must be enabled. Both license modes are supported. The plugin waits for the current reference code and shows a receipt only after the API acknowledges it. Temporary failures can retry the identical request; details are not saved in browser storage. Use the platform's manual form for visitors without a device. The separate email-confirmation shortcode is unchanged.
    128130
    129131=== Changelog ===
     132
     133= 1.1.3-beta.4 =
     134* Added [salessignal] and [salessignal_confirmation] with SalesSignal settings and documentation. Existing shortcode aliases, API routes and saved settings remain supported.
     135* Preserved confirmation-page search and indexing protections for both shortcode names; visitor pages keep natural check-in and email-confirmation wording.
    130136
    131137= 1.1.3-beta.3 =
  • dream-agility-tracking-pixel/trunk/assets/js/dreamagility-check-in.js

    r3827310 r3840345  
    8686                    inFlight = false;
    8787                    token = '';
    88                     render('Email confirmed', 'You are checked in. You can close this page and return to reception.', false, true);
     88                    render('Email confirmed', 'Your check-in is confirmed. You can close this page and return to reception.', false, true);
    8989                } else {
    9090                    fail(result.body.code || (result.response.status === 410 ? 'expired' : 'unavailable'));
    … …  
    104104            if (disposed || complete || inFlight) { return; }
    105105            if (!token) {
    106                 render('Open your confirmation email', 'Use the link in the latest email from reception to confirm your check-in.', false, false);
     106                render('Open your confirmation email', 'Use the link in your latest confirmation email to confirm your check-in.', false, false);
    107107                return;
    108108            }
  • dream-agility-tracking-pixel/trunk/beta-channel.json

    r3839887 r3840345  
    11{
    22  "schema": 1,
    3   "version": "1.1.3-beta.3",
     3  "version": "1.1.3-beta.4",
    44  "package": "https://downloads.wordpress.org/plugin/dream-agility-tracking-pixel.zip",
    55  "requires": "5.3.2",
  • dream-agility-tracking-pixel/trunk/dream-agility-tracking-pixel.php

    r3839887 r3840345  
    33Plugin Name: Dream Agility Tracking Pixel
    44Description: A plugin to add the Dream Agility tracking pixel to your WordPress site.
    5 Version: 1.1.3-beta.3
     5Version: 1.1.3-beta.4
    66Author: Dream Agility
    77Requires at least: 5.3.2
  • dream-agility-tracking-pixel/trunk/includes/dreamagility-check-in.php

    r3827719 r3840345  
    11<?php
    2 /** Email confirmation for reception check-in. No Forminator submission is made. */
     2/** Email confirmation for SalesSignal check-in. No Forminator submission is made. */
    33if ( ! defined( 'ABSPATH' ) ) {
    44    exit;
    … …  
    4848
    4949function dreamagility_check_in_register_settings() {
    50     add_settings_section('dreamagility_reception_section', 'Reception confirmation', 'dreamagility_check_in_settings_description', 'dreamagility');
    51     add_settings_field('reception_api_origin', 'Reception API origin', 'dreamagility_check_in_api_origin_field', 'dreamagility', 'dreamagility_reception_section');
     50    add_settings_section('dreamagility_reception_section', 'SalesSignal confirmation', 'dreamagility_check_in_settings_description', 'dreamagility');
     51    add_settings_field('reception_api_origin', 'SalesSignal API origin', 'dreamagility_check_in_api_origin_field', 'dreamagility', 'dreamagility_reception_section');
    5252}
    5353add_action('admin_init', 'dreamagility_check_in_register_settings');
    5454
    5555function dreamagility_check_in_settings_description() {
    56     echo '<p>Place <code>[dreamagility_check_in_confirmation]</code> on a dedicated confirmation page, then configure that page URL in Dream Agility Reception Settings. This module is independent of Forminator booking.</p>';
     56    echo '<p>Place <code>[salessignal_confirmation]</code> on a dedicated confirmation page, then configure that page URL in SalesSignal settings &amp; families in the Dream Agility platform. This module is independent of Forminator booking.</p>';
    5757}
    5858
    … …  
    6565    if (!is_singular()) { return false; }
    6666    $post = get_post();
    67     return $post && has_shortcode($post->post_content, 'dreamagility_check_in_confirmation');
    68 }
    69 
    70 /** Visibility protection requires this exact, attribute-free shortcode in saved page content. */
     67    return $post && (has_shortcode($post->post_content, 'salessignal_confirmation')
     68        || has_shortcode($post->post_content, 'dreamagility_check_in_confirmation'));
     69}
     70
     71/** Visibility protection requires an exact, attribute-free shortcode in saved page content. */
    7172function dreamagility_check_in_shortcode_marker() {
    72     return '[dreamagility_check_in_confirmation]';
     73    return '[salessignal_confirmation]';
     74}
     75
     76function dreamagility_check_in_shortcode_markers() {
     77    return array(dreamagility_check_in_shortcode_marker(), '[dreamagility_check_in_confirmation]');
    7378}
    7479
    7580/** Keep the PHP listing predicate aligned with the canonical-literal SQL predicate below. */
    7681function dreamagility_check_in_is_confirmation_post($post) {
    77     return is_object($post) && isset($post->post_type, $post->post_content)
    78         && 'page' === $post->post_type
    79         && false !== strpos($post->post_content, dreamagility_check_in_shortcode_marker());
     82    if (!is_object($post) || !isset($post->post_type, $post->post_content) || 'page' !== $post->post_type) { return false; }
     83    foreach (dreamagility_check_in_shortcode_markers() as $marker) {
     84        if (false !== strpos($post->post_content, $marker)) { return true; }
     85    }
     86    return false;
    8087}
    8188
    … …  
    115122    global $wpdb;
    116123    // BINARY preserves the shortcode's case sensitivity; esc_like protects its underscores.
    117     $marker = '%' . $wpdb->esc_like(dreamagility_check_in_shortcode_marker()) . '%';
     124    $conditions = array();
     125    $markers = array();
     126    foreach (dreamagility_check_in_shortcode_markers() as $marker) {
     127        $conditions[] = "BINARY {$wpdb->posts}.post_content NOT LIKE %s";
     128        $markers[] = '%' . $wpdb->esc_like($marker) . '%';
     129    }
    118130    return $where . $wpdb->prepare(
    119         " AND ({$wpdb->posts}.post_type <> 'page' OR BINARY {$wpdb->posts}.post_content NOT LIKE %s)",
    120         $marker
     131        " AND ({$wpdb->posts}.post_type <> 'page' OR (" . implode(' AND ', $conditions) . '))',
     132        ...$markers
    121133    );
    122134}
    … …  
    182194
    183195function dreamagility_check_in_register_shortcode() {
     196    add_shortcode('salessignal_confirmation', 'dreamagility_check_in_shortcode');
     197    // Keep existing confirmation pages working.
    184198    add_shortcode('dreamagility_check_in_confirmation', 'dreamagility_check_in_shortcode');
    185199}
    … …  
    187201
    188202function dreamagility_check_in_shortcode() {
    189     return '<section class="da-check-in" data-da-check-in aria-label="Reception email confirmation">'
     203    return '<section class="da-check-in" data-da-check-in aria-label="Email confirmation">'
    190204        . '<div class="da-check-in__mark" aria-hidden="true"><svg viewBox="0 0 48 48" focusable="false"><circle cx="24" cy="24" r="21" fill="none" stroke="currentColor" stroke-width="3"/><path d="m14 24 7 7 14-15" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/></svg></div>'
    191205        . '<h2 data-da-check-in-heading>Confirming your email</h2>'
  • dream-agility-tracking-pixel/trunk/includes/dreamagility-website-check-in.php

    r3839887 r3840345  
    11<?php
    2 /** Static QR destination: create a walk-in lead from the visitor's own browser. */
     2/** SalesSignal static QR destination: create a walk-in lead from the visitor's own browser. */
    33if ( ! defined( 'ABSPATH' ) ) {
    44    exit;
    … …  
    88    if (!is_singular()) { return false; }
    99    $post = get_post();
    10     return $post && has_shortcode($post->post_content, 'dreamagility_check_in');
     10    return $post && (has_shortcode($post->post_content, 'salessignal')
     11        || has_shortcode($post->post_content, 'dreamagility_check_in'));
    1112}
    1213
    1314function dreamagility_website_check_in_register_settings() {
    14     add_settings_section('dreamagility_website_check_in_section', 'Website check-in', 'dreamagility_website_check_in_description', 'dreamagility');
    15     add_settings_field('website_check_in_enabled', 'Custom check-in forms', 'dreamagility_website_check_in_enabled_field', 'dreamagility', 'dreamagility_website_check_in_section');
     15    add_settings_section('dreamagility_website_check_in_section', 'SalesSignal website check-in', 'dreamagility_website_check_in_description', 'dreamagility');
     16    add_settings_field('website_check_in_enabled', 'Custom SalesSignal forms', 'dreamagility_website_check_in_enabled_field', 'dreamagility', 'dreamagility_website_check_in_section');
    1617}
    1718add_action('admin_init', 'dreamagility_website_check_in_register_settings');
    1819
    1920function dreamagility_website_check_in_description() {
    20     echo '<p>Place <code>[dreamagility_check_in]</code> on the page opened by your static QR code, and save its URL in Dream Agility Reception Settings. It collects name, email and phone and creates a walk-in lead using this visitor\'s tracking reference. It uses the Reception API origin below and does not require Forminator.</p>';
    21     echo '<p>For an existing form, enable custom check-in forms and add <code>check-in-form</code> to the form or its wrapper. Add <code>da-check-in-name</code>, <code>da-check-in-email</code> and <code>da-check-in-phone</code> to one input or field wrapper each. Use a single full-name input. The plugin handles submission directly; do not add booking classes or <code>da-submit</code>/<code>da-tp-*</code> tracking classes.</p>';
     21    echo '<p>Place <code>[salessignal]</code> on the page opened by your static QR code, and save its URL in SalesSignal settings &amp; families in the Dream Agility platform. It collects name, email and phone and creates a walk-in lead using this visitor\'s tracking reference. It uses the SalesSignal API origin below and does not require Forminator.</p>';
     22    echo '<p>For an existing form, enable custom SalesSignal forms and add <code>check-in-form</code> to the form or its wrapper. Add <code>da-check-in-name</code>, <code>da-check-in-email</code> and <code>da-check-in-phone</code> to one input or field wrapper each. Use a single full-name input. The plugin handles submission directly; do not add booking classes or <code>da-submit</code>/<code>da-tp-*</code> tracking classes.</p>';
    2223}
    2324
    … …  
    4950
    5051function dreamagility_website_check_in_register_shortcode() {
     52    add_shortcode('salessignal', 'dreamagility_website_check_in_shortcode');
     53    // Keep existing visitor pages working.
    5154    add_shortcode('dreamagility_check_in', 'dreamagility_website_check_in_shortcode');
    5255}
    … …  
    5558function dreamagility_website_check_in_shortcode() {
    5659    return '<section class="da-website-check-in" aria-label="Visitor check-in">'
    57         . '<h2>Welcome. Let\'s check you in.</h2><p>Enter your details, then return to reception.</p>'
     60        . '<h2>Welcome. Let\'s check you in.</h2><p>Enter your details to check in, then return to reception.</p>'
    5861        . '<form class="check-in-form" method="post" data-da-check-in-shortcode>'
    5962        . '<label>Full name<input class="da-check-in-name" name="fullName" autocomplete="name" maxlength="150" required></label>'
Note: See TracChangeset for help on using the changeset viewer.