Skip to content

Tracks Issue: Invalid event property formatting #1284

@AmandaRiu

Description

@AmandaRiu

While testing completely unrelated code changes, I ran across these errors in logcat:

W/NosaraEvent: Properties should have lowercase name: hasJetpack
E/NosaraEvent: Cannot add the property: hasJetpack to the event. Property name must match: ^[a-z_][a-z0-9_]*$
W/NosaraEvent: Properties should have lowercase name: isJetpackConnected
E/NosaraEvent: Cannot add the property: isJetpackConnected to the event. Property name must match: ^[a-z_][a-z0-9_]*$
W/NosaraEvent: Properties should have lowercase name: urlAfterRedirects
E/NosaraEvent: Cannot add the property: urlAfterRedirects to the event. Property name must match: ^[a-z_][a-z0-9_]*$
W/NosaraEvent: Properties should have lowercase name: isJetpackActive
E/NosaraEvent: Cannot add the property: isJetpackActive to the event. Property name must match: ^[a-z_][a-z0-9_]*$
W/NosaraEvent: Properties should have lowercase name: isWPCom
E/NosaraEvent: Cannot add the property: isWPCom to the event. Property name must match: ^[a-z_][a-z0-9_]*$
W/NosaraEvent: Properties should have lowercase name: isWordPress
E/NosaraEvent: Cannot add the property: isWordPress to the event. Property name must match: ^[a-z_][a-z0-9_]*$

I checked Tracks Live View and verified the following event properties are not being recorded:

  • hasJetpack
  • isJetpackConnected
  • urlAfterRedirects
  • isJetpackActive
  • isWPCom
  • isWordPress

These properties need to be renamed to follow the pattern ^[a-z_][a-z0-9_]*$:

  • has_jetpack
  • is_jetpack_connected
  • url_after_redirects
  • is_jetpack_active
  • is_wp_com
  • is_wordpress

Metadata

Metadata

Assignees

Labels

category: tracksRelated to analytics, including Tracks Events.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions