Skip to content

Commit

Permalink
Merge pull request #9 from stape-io/v2.1.10
Browse files Browse the repository at this point in the history
Changed validation for field - Server GTM container URL
  • Loading branch information
Bukashk0zzz authored Dec 18, 2023
2 parents 88904eb + f739a63 commit 6f12861
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ Yes. <a href="https://stape.io/blog/how-to-set-up-facebook-conversion-api">How t
4. Menu item in the settings panel.

== Changelog ==
= 2.1.10 =
* Changed validation for field - Server GTM container URL

= 2.1.9 =
* Tested up to WordPress 6.4

Expand Down
2 changes: 1 addition & 1 deletion assets/js/admin-javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jQuery( document ).ready(
if ( ! value ) {
return true;
}
return /^https:\/\/[\w\-\.]+$/.test( value );
return /^https:\/\/[\w\-\.]+(\/[\w\-\.]+)*$/.test( value );
},
'URL must be entered with https:// and without slashes at the end'
);
Expand Down
2 changes: 1 addition & 1 deletion gtm-server-side.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* Plugin Name: GTM Server Side
* Plugin URI: https://wordpress.org/plugins/gtm-server-side/
* Description: Enhance conversion tracking by implementing server-side tagging using server Google Tag Manager container. Effortlessly configure data layer events in web GTM, send webhooks, set up custom loader, and extend cookie lifetime.
* Version: 2.1.9
* Version: 2.1.10
* Author: Stape
* Author URI: https://stape.io
* License: GPL-2.0+
Expand Down

0 comments on commit 6f12861

Please sign in to comment.