Skip to content

Commit

Permalink
SwG Release b4808644 (#38572)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisAntaki committed Dec 7, 2022
1 parent a68414f commit 1a8f941
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion third_party/subscriptions-project/config.js
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** Version: 0.1.22.243 */
/** Version: b4808644 */
/**
* Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.
*
Expand Down
2 changes: 1 addition & 1 deletion third_party/subscriptions-project/swg-gaa.js
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** Version: 0.1.22.243 */
/** Version: b4808644 */
/**
* Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.
*
Expand Down
12 changes: 7 additions & 5 deletions third_party/subscriptions-project/swg.js
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/** Version: 0.1.22.243 */
/** Version: b4808644 */
/**
* Copyright 2018 The Subscribe with Google Authors. All Rights Reserved.
*
Expand Down Expand Up @@ -5420,7 +5420,9 @@ function getCanonicalUrl(doc) {
const rootNode = doc.getRootNode();
const canonicalTag = rootNode.querySelector("link[rel='canonical']");
return (
canonicalTag?.href || rootNode.location.origin + rootNode.location.pathname
canonicalTag?.href ||
rootNode.location?.origin + rootNode.location?.pathname ||
''
);
}

Expand Down Expand Up @@ -5620,7 +5622,7 @@ function feCached(url) {
*/
function feArgs(args) {
return Object.assign(args, {
'_client': 'SwG 0.1.22.243',
'_client': 'SwG b4808644',
});
}

Expand Down Expand Up @@ -6962,7 +6964,7 @@ class ActivityPorts$1 {
'analyticsContext': context.toArray(),
'publicationId': pageConfig.getPublicationId(),
'productId': pageConfig.getProductId(),
'_client': 'SwG 0.1.22.243',
'_client': 'SwG b4808644',
'supportsEventManager': true,
},
args || {}
Expand Down Expand Up @@ -7931,7 +7933,7 @@ class AnalyticsService {
context.setTransactionId(getUuid());
}
context.setReferringOrigin(parseUrl(this.getReferrer_()).origin);
context.setClientVersion('SwG 0.1.22.243');
context.setClientVersion('SwG b4808644');
context.setUrl(getCanonicalUrl(this.doc_));

const utmParams = parseQueryString(this.getQueryString_());
Expand Down

0 comments on commit 1a8f941

Please sign in to comment.