Skip to content

Commit

Permalink
chore(release): pull main into develop post release v3.28.0 (#1816)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs authored Aug 1, 2024
2 parents 23a0e37 + 7f5c28d commit 6f120aa
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-monorepo",
"version": "3.27.0",
"version": "3.28.0",
"private": true,
"description": "Monorepo for RudderStack Analytics JS SDK",
"workspaces": [
Expand Down
7 changes: 7 additions & 0 deletions packages/analytics-js-integrations/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).

## [3.6.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-08-01)


### Features

* **integrations:** feature for server side container url support ga4 ([cfbea6c](https://github.com/rudderlabs/rudder-sdk-js/commit/cfbea6c615e3ef63e06c0098ccdb19c70572c22a))

## [3.5.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/[email protected]...@rudderstack/[email protected]) (2024-07-24)

### Dependency Updates
Expand Down
7 changes: 2 additions & 5 deletions packages/analytics-js-integrations/CHANGELOG_LATEST.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
## [3.5.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-integrations@3.4.5...@rudderstack/analytics-js-integrations@3.5.0) (2024-07-24)
## [3.6.0](https://github.com/rudderlabs/rudder-sdk-js/compare/@rudderstack/analytics-js-integrations@3.5.0...@rudderstack/analytics-js-integrations@3.6.0) (2024-08-01)

### Dependency Updates

* `@rudderstack/analytics-js-common` updated to version `3.4.5`

### Features

* **analytics-js-integrations:** onboard ga4 v2 hybrid mode ([#1802](https://github.com/rudderlabs/rudder-sdk-js/issues/1802)) ([2c8c3be](https://github.com/rudderlabs/rudder-sdk-js/commit/2c8c3bea8ada300c62729eb114dbe8ff84ae9269))
* **integrations:** feature for server side container url support ga4 ([cfbea6c](https://github.com/rudderlabs/rudder-sdk-js/commit/cfbea6c615e3ef63e06c0098ccdb19c70572c22a))

2 changes: 1 addition & 1 deletion packages/analytics-js-integrations/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rudderstack/analytics-js-integrations",
"version": "3.5.0",
"version": "3.6.0",
"private": true,
"description": "RudderStack JavaScript SDK device mode integrations",
"main": "dist/npm/modern/cjs/index.js",
Expand Down
6 changes: 3 additions & 3 deletions packages/analytics-js-integrations/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@
"github": {
"executor": "@jscutlery/semver:github",
"options": {
"tag": "@rudderstack/analytics-js-integrations@3.5.0",
"title": "@rudderstack/analytics-js-integrations@3.5.0",
"discussion-category": "@rudderstack/analytics-js-integrations@3.5.0",
"tag": "@rudderstack/analytics-js-integrations@3.6.0",
"title": "@rudderstack/analytics-js-integrations@3.6.0",
"discussion-category": "@rudderstack/analytics-js-integrations@3.6.0",
"notesFile": "./packages/analytics-js-integrations/CHANGELOG_LATEST.md"
}
}
Expand Down
16 changes: 12 additions & 4 deletions packages/analytics-js-integrations/src/integrations/GA4/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,12 @@ import {
import { Cookie } from '@rudderstack/analytics-js-common/v1.1/utils/storage/cookie';
import Logger from '../../utils/logger';
import { eventsConfig } from './config';
import { constructPayload, flattenJsonPayload, removeTrailingSlashes } from '../../utils/utils';
import {
constructPayload,
flattenJsonPayload,
isDefinedAndNotNull,
removeTrailingSlashes,
} from '../../utils/utils';
import {
shouldSendUserId,
prepareParamsAndEventName,
Expand Down Expand Up @@ -39,6 +44,7 @@ export default class GA4 {
this.overrideClientAndSessionId = config.overrideClientAndSessionId || false;
this.sdkBaseUrl =
removeTrailingSlashes(config.sdkBaseUrl) || 'https://www.googletagmanager.com';
this.serverContainerUrl = config.serverContainerUrl || null;
this.isExtendedGa4_V2 = config.isExtendedGa4_V2 || false;
({
shouldApplyDeviceModeTransformation: this.shouldApplyDeviceModeTransformation,
Expand All @@ -57,6 +63,10 @@ export default class GA4 {
window.gtag('js', new Date());
const gtagParameterObject = {};

if (isDefinedAndNotNull(this.serverContainerUrl)) {
gtagParameterObject.server_container_url = this.serverContainerUrl;
}

if (this.capturePageView === 'rs') {
gtagParameterObject.send_page_view = false;
}
Expand All @@ -71,7 +81,7 @@ export default class GA4 {
gtagParameterObject.cookie_prefix = 'rs';
gtagParameterObject.client_id = this.analytics.getAnonymousId();
gtagParameterObject.session_id = this.analytics.getSessionId();
} else if(!this.isExtendedGa4_V2){
} else if (!this.isExtendedGa4_V2) {
// Cookie migration logic
const clientCookie = this.cookie.get('rs_ga');
const defaultGA4Cookie = this.cookie.get('_ga');
Expand Down Expand Up @@ -271,5 +281,3 @@ export default class GA4 {
};
}
}


2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ sonar.qualitygate.wait=false
sonar.projectKey=rudderlabs_rudder-sdk-js
sonar.organization=rudderlabs
sonar.projectName=rudder-sdk-js
sonar.projectVersion=3.27.0
sonar.projectVersion=3.28.0

# Meta-data for the project
sonar.links.scm=https://github.com/rudderlabs/rudder-sdk-js
Expand Down

0 comments on commit 6f120aa

Please sign in to comment.