Changeset 3840345
- Timestamp:
- 12/02/2026 03:02:38 PM (less than one hour ago)
- Location:
- dream-agility-tracking-pixel/trunk
- Files:
-
- 6 edited
-
README.txt (modified) (1 diff)
-
assets/js/dreamagility-check-in.js (modified) (2 diffs)
-
beta-channel.json (modified) (1 diff)
-
dream-agility-tracking-pixel.php (modified) (1 diff)
-
includes/dreamagility-check-in.php (modified) (6 diffs)
-
includes/dreamagility-website-check-in.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dream-agility-tracking-pixel/trunk/README.txt
r3839887 r3840345 112 112 3.2. Enquiry-only forms use the SSA V1 enquiry endpoint in either mode. 113 113 114 Optional reception confirmation (only on a page containing [dreamagility_check_in_confirmation]): 114 SalesSignal 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 116 Optional SalesSignal confirmation (only on a page containing [salessignal_confirmation]): 115 117 116 118 The 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. 117 119 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. Receptionremains 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 aboveare 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-informs 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 ReceptionAPI 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-informs. 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.120 Add 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 122 Confirmation 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 124 Optional 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. 127 129 * 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. 128 130 129 131 === 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. 130 136 131 137 = 1.1.3-beta.3 = -
dream-agility-tracking-pixel/trunk/assets/js/dreamagility-check-in.js
r3827310 r3840345 86 86 inFlight = false; 87 87 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); 89 89 } else { 90 90 fail(result.body.code || (result.response.status === 410 ? 'expired' : 'unavailable')); … … 104 104 if (disposed || complete || inFlight) { return; } 105 105 if (!token) { 106 render('Open your confirmation email', 'Use the link in the latest email from receptionto 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); 107 107 return; 108 108 } -
dream-agility-tracking-pixel/trunk/beta-channel.json
r3839887 r3840345 1 1 { 2 2 "schema": 1, 3 "version": "1.1.3-beta. 3",3 "version": "1.1.3-beta.4", 4 4 "package": "https://downloads.wordpress.org/plugin/dream-agility-tracking-pixel.zip", 5 5 "requires": "5.3.2", -
dream-agility-tracking-pixel/trunk/dream-agility-tracking-pixel.php
r3839887 r3840345 3 3 Plugin Name: Dream Agility Tracking Pixel 4 4 Description: A plugin to add the Dream Agility tracking pixel to your WordPress site. 5 Version: 1.1.3-beta. 35 Version: 1.1.3-beta.4 6 6 Author: Dream Agility 7 7 Requires at least: 5.3.2 -
dream-agility-tracking-pixel/trunk/includes/dreamagility-check-in.php
r3827719 r3840345 1 1 <?php 2 /** Email confirmation for receptioncheck-in. No Forminator submission is made. */2 /** Email confirmation for SalesSignal check-in. No Forminator submission is made. */ 3 3 if ( ! defined( 'ABSPATH' ) ) { 4 4 exit; … … 48 48 49 49 function dreamagility_check_in_register_settings() { 50 add_settings_section('dreamagility_reception_section', ' Receptionconfirmation', 'dreamagility_check_in_settings_description', 'dreamagility');51 add_settings_field('reception_api_origin', ' ReceptionAPI 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'); 52 52 } 53 53 add_action('admin_init', 'dreamagility_check_in_register_settings'); 54 54 55 55 function 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 & families in the Dream Agility platform. This module is independent of Forminator booking.</p>'; 57 57 } 58 58 … … 65 65 if (!is_singular()) { return false; } 66 66 $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. */ 71 72 function dreamagility_check_in_shortcode_marker() { 72 return '[dreamagility_check_in_confirmation]'; 73 return '[salessignal_confirmation]'; 74 } 75 76 function dreamagility_check_in_shortcode_markers() { 77 return array(dreamagility_check_in_shortcode_marker(), '[dreamagility_check_in_confirmation]'); 73 78 } 74 79 75 80 /** Keep the PHP listing predicate aligned with the canonical-literal SQL predicate below. */ 76 81 function 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; 80 87 } 81 88 … … 115 122 global $wpdb; 116 123 // 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 } 118 130 return $where . $wpdb->prepare( 119 " AND ({$wpdb->posts}.post_type <> 'page' OR BINARY {$wpdb->posts}.post_content NOT LIKE %s)",120 $marker131 " AND ({$wpdb->posts}.post_type <> 'page' OR (" . implode(' AND ', $conditions) . '))', 132 ...$markers 121 133 ); 122 134 } … … 182 194 183 195 function dreamagility_check_in_register_shortcode() { 196 add_shortcode('salessignal_confirmation', 'dreamagility_check_in_shortcode'); 197 // Keep existing confirmation pages working. 184 198 add_shortcode('dreamagility_check_in_confirmation', 'dreamagility_check_in_shortcode'); 185 199 } … … 187 201 188 202 function 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">' 190 204 . '<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>' 191 205 . '<h2 data-da-check-in-heading>Confirming your email</h2>' -
dream-agility-tracking-pixel/trunk/includes/dreamagility-website-check-in.php
r3839887 r3840345 1 1 <?php 2 /** S tatic 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. */ 3 3 if ( ! defined( 'ABSPATH' ) ) { 4 4 exit; … … 8 8 if (!is_singular()) { return false; } 9 9 $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')); 11 12 } 12 13 13 14 function 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-informs', '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'); 16 17 } 17 18 add_action('admin_init', 'dreamagility_website_check_in_register_settings'); 18 19 19 20 function 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 ReceptionAPI origin below and does not require Forminator.</p>';21 echo '<p>For an existing form, enable custom check-informs 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 & 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>'; 22 23 } 23 24 … … 49 50 50 51 function dreamagility_website_check_in_register_shortcode() { 52 add_shortcode('salessignal', 'dreamagility_website_check_in_shortcode'); 53 // Keep existing visitor pages working. 51 54 add_shortcode('dreamagility_check_in', 'dreamagility_website_check_in_shortcode'); 52 55 } … … 55 58 function dreamagility_website_check_in_shortcode() { 56 59 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>' 58 61 . '<form class="check-in-form" method="post" data-da-check-in-shortcode>' 59 62 . '<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.