Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update analytics #13822

Merged
merged 3 commits into from
Mar 15, 2023
Merged

Update analytics #13822

merged 3 commits into from
Mar 15, 2023

Conversation

pinzart90
Copy link
Contributor

@pinzart90 pinzart90 commented Mar 14, 2023

Remove all usage of IsOptedIn for ADP (it is considered an internal API by ADP)
Added USEEXCEPTIONTRACE option for CER as per this discussion https://autodesk.slack.com/archives/CH8CL3MRR/p1664815775433379

@@ -474,7 +475,7 @@ private Step CreateStep(Step jsonStepInfo, HostControlInfo hostControlInfo, int
Sequence = jsonStepInfo.Sequence,
RatingTextTitle = formattedText.ToString(),
StepType = Step.StepTypes.SURVEY,
IsRatingVisible = dynamoViewModel.Model.PreferenceSettings.IsADPAnalyticsReportingApproved,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mjkkirschner @QilongTang any ideas what this is used for ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is about the five star rating after guided tour exited, when analytics opt-in, we display the rating for ppl to rate

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

well now we will no longer know if ADP is opted in or not.
Should I just check for google analytics ? or as it is (if no one explicitly disabled analytics) ?

Copy link
Contributor

@QilongTang QilongTang Mar 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would leave it as it is in your PR. It seems after this change, only startup params would impact which I think should still apply. The worst case is user clicked rating but both GA and ADP Opt-out, and client sends nothing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds right

@QilongTang QilongTang added this to the 2.18.0 milestone Mar 14, 2023
@@ -474,7 +475,7 @@ private Step CreateStep(Step jsonStepInfo, HostControlInfo hostControlInfo, int
Sequence = jsonStepInfo.Sequence,
RatingTextTitle = formattedText.ToString(),
StepType = Step.StepTypes.SURVEY,
IsRatingVisible = dynamoViewModel.Model.PreferenceSettings.IsADPAnalyticsReportingApproved,
IsRatingVisible = !Analytics.DisableAnalytics && Analytics.IsEnabled,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will Analytics.IsEnabled always be true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IsEnabled is false when the DynamoAnalyticsClient is not created. DynamoAnalyticsClient is created when dynamo model is started with these flags

!IsServiceMode && !areAnalyticsDisabledFromConfig && !Dynamo.Logging.Analytics.DisableAnalytics

Copy link
Contributor Author

@pinzart90 pinzart90 Mar 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There might be some other conditions that affect if DynamoAnalyticsClient is created (depending on how the Dynamo model is created)

@pinzart90 pinzart90 merged commit f51b2d8 into master Mar 15, 2023
@pinzart90 pinzart90 deleted the update_analytics branch March 15, 2023 15:01
sm6srw pushed a commit to sm6srw/Dynamo that referenced this pull request Mar 29, 2023
* update analytics

* Update DynamoCore.csproj

* Update DynamoCoreTests.csproj

---------

Co-authored-by: pinzart <[email protected]>
sm6srw pushed a commit that referenced this pull request Apr 5, 2023
* update analytics

* Update DynamoCore.csproj

* Update DynamoCoreTests.csproj

---------

Co-authored-by: pinzart <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants