Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Calculate Age Adobe Analytics

Avatar

Avatar
Ignite 1
Level 3
1982luca
Level 3

Likes

6 likes

Total Posts

311 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Ignite 1
Level 3
1982luca
Level 3

Likes

6 likes

Total Posts

311 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Boost 3
Boost 1
Applaud 5
View profile
1982luca
Level 3

25-06-2020

Hello everyone,

Currently my client is acquiring from the "Registration Form"  Month and Year  (Born) Seeing that my client wants to calculate Age, anyone knows how to do? 

I am thinking of create a js custom code in the Registration Form which calculates the age during signup but how Analytics updates every year?

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

124 likes

Total Posts

203 posts

Correct Reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
raj_mandalapu
MVP

Likes

124 likes

Total Posts

203 posts

Correct Reply

72 solutions
Top badges earned
Validate 1
Contributor
Shape 1
Give Back 5
Give Back 3
View profile
raj_mandalapu
MVP

26-06-2020

I suggest you first check with your client on what he/she is going to do with it and what kind of reports he is going to generate.

The implementation varies based on the reports, you can use classifications something like name:dob:location and create classification builder to build buckets ( 20 - 30 ), ( 30 - 40 ), etc. but this also be problem when it comes to next year.

(or) you can use separate eVar for this, what you need to do is here, you need to calculate age at front end and pass it to the registration event but the problem here is it will not updated every year. the important thing which you need to check is what he/she wants, current DOB or age at the time of registration? 

 

I never tried for dates but, you can also try creating segments for age groups

 

 

Answers (1)

Answers (1)

Avatar

Avatar
Seeker
Level 5
David-123
Level 5

Likes

115 likes

Total Posts

135 posts

Correct Reply

18 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Springboard
Establish
View profile

Avatar
Seeker
Level 5
David-123
Level 5

Likes

115 likes

Total Posts

135 posts

Correct Reply

18 solutions
Top badges earned
Seeker
Bedrock
Engage 1
Springboard
Establish
View profile
David-123
Level 5

26-06-2020

Hi there,

 

Firstly you need to be careful if you capturing this information because of GDPR. It's worth checking your legal team is happy but providing they are, I would actually go with the simple solution of using javascript datediff and a getdate(), so no updating is required.

 

https://www.w3resource.com/javascript-exercises/javascript-date-exercise-8.php

 

Thanks

 

Dave