Skip to main content
Solved

Semantic versioning with event properties


I have an event property called `deployable_version`. It provides to the version of the web app or native app that’s generating the pageview for my site. I am sending it as a string, which doesn’t support semver ordering, i.e. where 1.9 < 1.11.

I looked through the datatypes available in the Converter Config but I did not see anything that would allow this kind of sorting. I also saw Data Planning but the types available there also do not seem to be much use here. Is something like this possible for event properties?

Best answer by Denis Holmes

Hi @dmazza ,

I see the issue now. Unfortunately, while we currently do not support semver ordering like you said. However, if you can message me your email and Org ID, I will be happy to submit this for you as a feature request for the future. 

 

Kind Regards,
Denis

View original
Did this topic help you find an answer to your question?

7 replies

Denis Holmes
Team Member
Forum|alt.badge.img+8
  • Team Member
  • 448 replies
  • August 31, 2022

Hi @dmazza ,

 

Thanks for writing in! Is this in relation to cloud storage or analytics itself? We have a versioning system which you can use as described here which I believe should allow for version comparison. Can you check if that suits your needs? Thank you!

 

Kind Regards,
Denis


  • Author
  • New Member
  • 1 reply
  • August 31, 2022

Hi @Denis Holmes 
Thanks for the reply, the version is not in relation to our product but rather the version of the web app our customer is using to visit the website(chrome, firefox, etc version). If I am reading what you linked correctly that version tracking only applies to our own product.
This is in relation to analytics itself. stakeholders would like the ability to filter web visitors by something like `chrome_version > 10.9`, but right now that will not return things like 10.11


Denis Holmes
Team Member
Forum|alt.badge.img+8
  • Team Member
  • 448 replies
  • Answer
  • September 1, 2022

Hi @dmazza ,

I see the issue now. Unfortunately, while we currently do not support semver ordering like you said. However, if you can message me your email and Org ID, I will be happy to submit this for you as a feature request for the future. 

 

Kind Regards,
Denis


Forum|alt.badge.img+2
  • Peer Moderator
  • 29 replies
  • February 26, 2023

@Denis Holmes was there ever any progress for this in last 6 months? Is semver comparison possible? Asking because we are evaluating amplitude and competing analytics platforms support this


Amplitude Admin
Community Manager
Forum|alt.badge.img+9

Thanks for following up here @trevin-bc. We can float this to our product organization. In the meantime, we’re constantly innovating and our Product Updates section is the best place to see the latest releases.

 


This is a must have for us. Any updates?


Forum|alt.badge.img+1
  • Experienced
  • 13 replies
  • March 12, 2025

If you need semantic versioning with event properties in Amplitude, the best approach is to include a version number as a custom event property. 

Just add something like "app_version": "1.2.3" to your event payloads. This way, you can filter and analyze events based on specific versions. If you need more structure, you could also split it into major, minor, and patch properties ("major_version": 1, "minor_version": 2, "patch_version": 3).


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings