|
1 | 1 | /* |
2 | 2 | * breinify-api |
3 | | - * v1.0.16 |
| 3 | + * v1.0.17 |
4 | 4 | **/ |
5 | 5 | /* |
6 | 6 | * We inject a dependencyScope variable, which will be used |
@@ -12863,7 +12863,7 @@ dependencyScope.jQuery = $;; |
12863 | 12863 | }); |
12864 | 12864 |
|
12865 | 12865 | var BreinifyConfig = function (config) { |
12866 | | - this.version = '1.0.16'; |
| 12866 | + this.version = '1.0.17'; |
12867 | 12867 |
|
12868 | 12868 | /* |
12869 | 12869 | * Validate the passed config-parameters. |
@@ -13054,7 +13054,7 @@ dependencyScope.jQuery = $;; |
13054 | 13054 |
|
13055 | 13055 | var BreinifyUser = function (user, onReady) { |
13056 | 13056 | var instance = this; |
13057 | | - instance.version = '1.0.16'; |
| 13057 | + instance.version = '1.0.17'; |
13058 | 13058 |
|
13059 | 13059 | // set the values provided |
13060 | 13060 | instance.setAll(user); |
@@ -13449,6 +13449,12 @@ dependencyScope.jQuery = $;; |
13449 | 13449 | var utmTerm = Breinify.UTL.isEmpty(params['utm_term']) ? null : params['utm_term']; |
13450 | 13450 | var utmContent = Breinify.UTL.isEmpty(params['utm_content']) ? null : params['utm_content']; |
13451 | 13451 |
|
| 13452 | + // check if we even have parameters, otherwise return |
| 13453 | + if (Breinify.UTL.isEmpty(utmSource) && Breinify.UTL.isEmpty(utmMedium) && Breinify.UTL.isEmpty(utmCampaign) && |
| 13454 | + Breinify.UTL.isEmpty(utmTerm) && Breinify.UTL.isEmpty(utmContent)) { |
| 13455 | + return; |
| 13456 | + } |
| 13457 | + |
13452 | 13458 | // create the data |
13453 | 13459 | var values = mapper({ |
13454 | 13460 | 'utmSource': utmSource, |
@@ -13549,7 +13555,7 @@ dependencyScope.jQuery = $;; |
13549 | 13555 | * The one and only instance of the library. |
13550 | 13556 | */ |
13551 | 13557 | var Breinify = { |
13552 | | - version: '1.0.16', |
| 13558 | + version: '1.0.17', |
13553 | 13559 | jQueryVersion: $.fn.jquery |
13554 | 13560 | }; |
13555 | 13561 |
|
|
0 commit comments