├── Calculated Metrics ├── Contribution Template.md ├── Linear Regression Line.md ├── New User Retention Rate with time restriction.md ├── New User Retention Rate.md ├── Readme.md ├── Simple Incrementor.md └── res │ ├── linearregressionline1.png │ ├── linearregressionline2.png │ ├── linearregressionline3.png │ ├── newuserretentionrate1.png │ ├── newuserretentionrate2.png │ ├── newuserretentionrate3.png │ ├── newuserretentionratewithtimerestriction1.png │ ├── newuserretentionratewithtimerestriction2.png │ ├── newuserretentionratewithtimerestriction3.png │ ├── newuserretentionratewithtimerestriction4.png │ ├── simpleincrementor1.png │ ├── simpleincrementor2.png │ └── simpleincrementor3.png ├── README.md ├── Segments ├── Contribution Template.md ├── Readme.md ├── Returning First Time Visitors with time restriction.md ├── Returning First Time Visitors.md ├── Sequential Retained Visitors.md ├── Simple Retained Visitors.md └── res │ ├── returningfirsttimevisitors1.png │ ├── returningfirsttimevisitors2.png │ ├── returningfirsttimevisitors3.png │ ├── returningfirsttimevisitorswithin1day1.png │ ├── returningfirsttimevisitorswithin1day2.png │ ├── sequentialretainedvisitors1.png │ ├── sequentialretainedvisitors2.png │ ├── simpleretainedvisitors1.png │ └── simpleretainedvisitors2.png └── Tags.md /Calculated Metrics/Contribution Template.md: -------------------------------------------------------------------------------- 1 | # Descriptive Name for your metric, same as file name 2 | Description and author 3 | 4 | ## Usage examples 5 | * Example for use cases or cool applications for this metric 6 | 7 | ## Business questions 8 | * Example for business questions to answer with this metric 9 | 10 | ## Screenshots 11 | * Screenshots of your metric in action, like in a table or graph 12 | 13 | ## Dependencies 14 | * Other calculated metrics or segments used 15 | 16 | ## Used Functions 17 | * Functions used in your metric 18 | 19 | ## Tags 20 | * Tags 21 | 22 | ## Definitions 23 | ### Screenshot of metric overview 24 | ### Screenshot of metric builder 25 | ### API definition of metric -------------------------------------------------------------------------------- /Calculated Metrics/Linear Regression Line.md: -------------------------------------------------------------------------------- 1 | # Linear Regression Line 2 | This metric gives you a simple Linear Regression Line to approximate your actual data for time series analysis. Think of the trend line in Excel. It can help to make trended data easier to understand. Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | 4 | ## Usage examples 5 | * Use with Unique Visitors to see where the traffic trend is headed. 6 | 7 | ## Business questions 8 | * What is the trend in my data for the selected date range? 9 | * How does the current trend compare to the larger, overall trend? 10 | 11 | ## Screenshots 12 | ![Linear Regression Line in Adobe Analytics](res/linearregressionline3.png) 13 | 14 | ## Dependencies 15 | * [Simple Incrementor](Simple%20Incrementor.md) metric for X Axis variable 16 | 17 | ## Used Functions 18 | Linear Regression: Predicted Y 19 | 20 | ## Tags 21 | Statistics, Regression, Trend, Time Series Analysis 22 | 23 | ## Definitions 24 | ### Screenshot of metric overview 25 | ![Metric Summary](res/linearregressionline1.png) 26 | ### Screenshot of metric builder 27 | ![Metric Builder](res/linearregressionline2.png) 28 | ### API definition of metric 29 | ```yaml 30 | { 31 | "definition":{ 32 | "formula":{ 33 | "func":"ls-pred-linear", 34 | "description":"Linear regression: Predicted Y", 35 | "x":{ 36 | "func":"cumul", 37 | "description":"Cumulative", 38 | "n":0, 39 | "col":1 40 | }, 41 | "y":{ 42 | "func":"metric", 43 | "name":"metrics/visitors", 44 | "description":"Unique Visitors" 45 | }, 46 | "include-zeros":false 47 | }, 48 | "func":"calc-metric", 49 | "version":[1,0,0] 50 | } 51 | } 52 | ``` -------------------------------------------------------------------------------- /Calculated Metrics/New User Retention Rate with time restriction.md: -------------------------------------------------------------------------------- 1 | # New User Retention Rate with time restriction 2 | Metric showing the percentage of users who came to a site for the first time and came back within a certain time in the Reporting Window. Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | 4 | ## Usage examples 5 | * Put in a table or graph to see the trend in New User Retention within a certain time over time 6 | * Use with marketing campaigns to see how many of the newly acquired users came back within a certain time 7 | 8 | ## Business questions 9 | * Are the people we acquire through campaigns coming back to our site within the time we want? 10 | * Are the features we build beneficial or detrimental to user retention within a certain time? 11 | 12 | ## Screenshots 13 | ![New User Retention Rate with time restriction in Adobe Analytics](res/newuserretentionratewithtimerestriction3.png) 14 | ![New User Retention Rate with time restriction in Adobe Analytics](res/newuserretentionratewithtimerestriction4.png) 15 | 16 | ## Dependencies 17 | * [Returning First Time Visitors with time restriction](../Segments/Returning%20First%20Time%20Visitors%20with%20time%20restriction.md) Segment 18 | * First Time Visits Segment 19 | 20 | ## Tags 21 | Retention, Customer Journey, Acquisition 22 | 23 | ## Definitions 24 | ### Screenshot of metric overview 25 | ![Metric Summary](res/newuserretentionratewithtimerestriction1.png) 26 | ### Screenshot of metric builder 27 | ![Metric Builder](res/newuserretentionratewithtimerestriction2.png) 28 | ### API definition of metric 29 | ```yaml 30 | { 31 | "definition": { 32 | "formula": { 33 | "func": "divide", 34 | "col1": { 35 | "func": "calc-metric", 36 | "formula": { 37 | "func": "metric", 38 | "name": "metrics/visitors", 39 | "description": "Unique Visitors" 40 | }, 41 | "version": [ 42 | 1, 43 | 0, 44 | 0 45 | ], 46 | "filters": [ 47 | { 48 | "func": "segment-ref", 49 | "description": "First Time Visits", 50 | "id": "First_Time_Visits" 51 | }, 52 | { 53 | "func": "segment-ref", 54 | "description": "Returning First Time Visitors with time restriction", 55 | "id": "[ID of Returning First Time Visitors with time restriction Segment]" 56 | } 57 | ] 58 | }, 59 | "col2": { 60 | "func": "calc-metric", 61 | "formula": { 62 | "func": "metric", 63 | "name": "metrics/visitors", 64 | "description": "Unique Visitors" 65 | }, 66 | "version": [ 67 | 1, 68 | 0, 69 | 0 70 | ], 71 | "filters": [ 72 | { 73 | "func": "segment-ref", 74 | "description": "First Time Visits", 75 | "id": "First_Time_Visits" 76 | } 77 | ] 78 | } 79 | }, 80 | "func": "calc-metric", 81 | "version": [ 82 | 1, 83 | 0, 84 | 0 85 | ] 86 | } 87 | } 88 | ``` -------------------------------------------------------------------------------- /Calculated Metrics/New User Retention Rate.md: -------------------------------------------------------------------------------- 1 | # New User Retention Rate 2 | Metric showing the percentage of users who came to a site for the first time and came back in the Reporting Window. Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | 4 | ## Usage examples 5 | * Put in a table or graph to see the trend in New User Retention over time 6 | * Use with marketing campaigns to see how many of the newly acquired users came back 7 | 8 | ## Business questions 9 | * Are the people we acquire through campaigns coming back to our site? 10 | * Are the features we build beneficial or detrimental to user retention? 11 | 12 | ## Screenshots 13 | ![New User Retention Rate in Adobe Analytics](res/newuserretentionrate3.png) 14 | 15 | ## Dependencies 16 | * [Returning First Time Visitors](../Segments/Returning%20First%20Time%20Visitors.md) Segment 17 | * First Time Visits Segment 18 | 19 | ## Tags 20 | Retention, Customer Journey, Acquisition 21 | 22 | ## Definitions 23 | ### Screenshot of metric overview 24 | ![Metric Summary](res/newuserretentionrate1.png) 25 | ### Screenshot of metric builder 26 | ![Metric Builder](res/newuserretentionrate2.png) 27 | ### API definition of metric 28 | ```yaml 29 | { 30 | "definition": { 31 | "formula": { 32 | "func": "divide", 33 | "col1": { 34 | "func": "calc-metric", 35 | "formula": { 36 | "func": "metric", 37 | "name": "metrics/visitors", 38 | "description": "Unique Visitors" 39 | }, 40 | "version": [ 41 | 1, 42 | 0, 43 | 0 44 | ], 45 | "filters": [ 46 | { 47 | "func": "segment-ref", 48 | "description": "Returning First Time Visitors", 49 | "id": "[ID of Returning First Time Visitors Segment]" 50 | }, 51 | { 52 | "func": "segment-ref", 53 | "description": "First Time Visits", 54 | "id": "First_Time_Visits" 55 | } 56 | ] 57 | }, 58 | "col2": { 59 | "func": "calc-metric", 60 | "formula": { 61 | "func": "metric", 62 | "name": "metrics/visitors", 63 | "description": "Unique Visitors" 64 | }, 65 | "version": [ 66 | 1, 67 | 0, 68 | 0 69 | ], 70 | "filters": [ 71 | { 72 | "func": "segment-ref", 73 | "description": "First Time Visits", 74 | "id": "First_Time_Visits" 75 | } 76 | ] 77 | } 78 | }, 79 | "func": "calc-metric", 80 | "version": [ 81 | 1, 82 | 0, 83 | 0 84 | ] 85 | } 86 | } 87 | ``` -------------------------------------------------------------------------------- /Calculated Metrics/Readme.md: -------------------------------------------------------------------------------- 1 | # List of Calculated Metrics 2 | * [Linear Regression Line Metric](Linear%20Regression%20Line.md). Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | * [New User Retention Rate Metric](New%20User%20Retention%20Rate.md). Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 4 | * [New User Retention Rate with time restriction Metric](New%20User%20Retention%20Rate%20with%20time%20restriction.md). Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 5 | * [Simple Incrementor Metric](Simple%20Incrementor.md). Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) -------------------------------------------------------------------------------- /Calculated Metrics/Simple Incrementor.md: -------------------------------------------------------------------------------- 1 | # Simple Incrementor 2 | This metric was created to serve as the X variable on Time Series Analysis metrics. It just goes up by one for every row of data, regardless of there being some actual data or not. Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | 4 | ## Usage examples 5 | * As X variable in Time Series Analysis or counter variable. 6 | 7 | ## Screenshots 8 | ![Simple Incrementor in Adobe Analytics](res/simpleincrementor1.png) 9 | 10 | ## Used Functions 11 | * Cumulative 12 | 13 | ## Tags 14 | * Counters, Statistics, Time Series Analysis 15 | 16 | ## Definitions 17 | ### Screenshot of metric overview 18 | ![Metric Summary](res/simpleincrementor2.png) 19 | ### Screenshot of metric builder 20 | ![Metric Builder](res/simpleincrementor3.png) 21 | ### API definition of metric 22 | ```yaml 23 | { 24 | "definition":{ 25 | "formula":{ 26 | "func":"cumul", 27 | "description":"Cumulative", 28 | "n":0, 29 | "col":1 30 | }, 31 | "func":"calc-metric", 32 | "version":[1,0,0] 33 | } 34 | } 35 | ``` -------------------------------------------------------------------------------- /Calculated Metrics/res/linearregressionline1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/linearregressionline1.png -------------------------------------------------------------------------------- /Calculated Metrics/res/linearregressionline2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/linearregressionline2.png -------------------------------------------------------------------------------- /Calculated Metrics/res/linearregressionline3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/linearregressionline3.png -------------------------------------------------------------------------------- /Calculated Metrics/res/newuserretentionrate1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/newuserretentionrate1.png -------------------------------------------------------------------------------- /Calculated Metrics/res/newuserretentionrate2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/newuserretentionrate2.png -------------------------------------------------------------------------------- /Calculated Metrics/res/newuserretentionrate3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/newuserretentionrate3.png -------------------------------------------------------------------------------- /Calculated Metrics/res/newuserretentionratewithtimerestriction1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/newuserretentionratewithtimerestriction1.png -------------------------------------------------------------------------------- /Calculated Metrics/res/newuserretentionratewithtimerestriction2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/newuserretentionratewithtimerestriction2.png -------------------------------------------------------------------------------- /Calculated Metrics/res/newuserretentionratewithtimerestriction3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/newuserretentionratewithtimerestriction3.png -------------------------------------------------------------------------------- /Calculated Metrics/res/newuserretentionratewithtimerestriction4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/newuserretentionratewithtimerestriction4.png -------------------------------------------------------------------------------- /Calculated Metrics/res/simpleincrementor1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/simpleincrementor1.png -------------------------------------------------------------------------------- /Calculated Metrics/res/simpleincrementor2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/simpleincrementor2.png -------------------------------------------------------------------------------- /Calculated Metrics/res/simpleincrementor3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Calculated Metrics/res/simpleincrementor3.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Welcome to the Open Adobe Analytics Components Repository! 2 | This is a public repository containing components for Adobe Analytics, like Calculated Metrics or Segments, to serve as reference or inspiration for everyone to use. I initially created this to keep track of all the segments and metrics I create for [my blog fullstackanalyst.io](https://www.fullstackanalyst.io?r=g). You can go to [this post](https://www.fullstackanalyst.io/blog/adobe-analytics/call-for-contributions-introducing-the-open-adobe-analytics-component-repository/?r=g) to learn more about the initiative. 3 | 4 | Feel free to check out the lists and topic pages. You are also very welcome to contribute anything that might be helpful to others. Check out the guide below to get [instructions on how to contribute](#how-to-contribute)! 5 | 6 | # Lists and Folders 7 | * Folders 8 | * [Calculated Metrics](Calculated%20Metrics/Readme.md) 9 | * [Segments](Segments/Readme.md) 10 | * Lists 11 | * [Tags](Tags.md) 12 | 13 | # How to contribute 14 | You can contribute to this collection in a lot of ways, for example: 15 | * Add new Metrics or Segments 16 | * Do some documentation on existing components by adding examples, screenshots or business questions 17 | * Add tags or list pages 18 | * Spread the word about this repo and get others to contribute! 19 | 20 | ## Steps to contribute 21 | 1. If you have an addition (like a new Metric or Segment), please make sure it does not exist already. You can open an issue if you have any remarks or comments. 22 | 2. If you want to add something new, please use the contribution template in the respective folders for your component. Put screenshots in the `res` folders, named after your Metric or Segment. Ideally, you would also include the API definition of your component to make it easier for others to use, but that is optional. 23 | 3. Open a Pull Request for your addition. If you add a component, make sure you also include it in the lists and tags. 24 | 25 | # Disclaimer 26 | Neither I nor this repository are in any way affiliated to Adobe. All trademarks belong to their owners. 27 | -------------------------------------------------------------------------------- /Segments/Contribution Template.md: -------------------------------------------------------------------------------- 1 | # Descriptive Name for your segment, same as file name 2 | Description and author 3 | 4 | ## Usage examples 5 | * Example for use cases or cool applications for this segment 6 | 7 | ## Business questions 8 | * Example for business questions to answer with this segment 9 | 10 | ## Screenshots 11 | * Screenshots of your segment in action, like in a table or graph 12 | 13 | ## Dependencies 14 | * Other segments used 15 | 16 | ## Functions 17 | * Functions used in your segment 18 | 19 | ## Tags 20 | * Tags 21 | 22 | ## Definitions 23 | ### Screenshot of segment builder 24 | ### API definition of segment -------------------------------------------------------------------------------- /Segments/Readme.md: -------------------------------------------------------------------------------- 1 | # List of Segments 2 | * [Returning First Time Visitors Segment](Returning%20First%20Time%20Visitors.md). Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | * [Returning First Time Visitors with time restriction Segment](Returning%20First%20Time%20Visitors%20with%20time%20restriction.md). Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 4 | * [Sequential Retained Visitors Segment](Sequential%20Retained%20Visitors.md). Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 5 | * [Simple Retained Visitors Segment](Simple%20Retained%20Visitors.md). Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) -------------------------------------------------------------------------------- /Segments/Returning First Time Visitors with time restriction.md: -------------------------------------------------------------------------------- 1 | # Returning First Time Visitors with time restriction 2 | Segment to return all Hits from Visitors who had both their first and second Visit within a defined time window in a given Date Range. "Within 1 day" restriction can be changed to any interval as needed. Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | 4 | ## Usage examples 5 | * Can be used in a table or graph together with the Unique Visitors metric to show the number of Visitors who had both their first and their second Visit within a given time in the selected Date Range. 6 | * Can be used in Retention Metrics 7 | * Can be used to show the percentage of Visitors who were acquired and retained within a given time in a given Date Range 8 | * Can be used with the First Time Visits Segment to show the day a User came for the first time and returned within a certain time later on 9 | 10 | ## Business questions 11 | * How many Users visited my site for the first time and came back within one week? 12 | * How many of the new Users acquired by a campaign came back within one day? 13 | 14 | ## Screenshots 15 | ![Returning First Time Visitors Within 1 Day Segment in Adobe Analytics](res/returningfirsttimevisitorswithin1day2.png) 16 | 17 | ## Tags 18 | Retention, Customer Journey, Acquisition 19 | 20 | ## Definitions 21 | ### Screenshot of segment builder 22 | ![Segment Builder](res/returningfirsttimevisitorswithin1day1.png) 23 | ### API definition of segment 24 | ```yaml 25 | { 26 | "definition": { 27 | "container": { 28 | "func": "container", 29 | "pred": { 30 | "func": "sequence", 31 | "stream": [ 32 | { 33 | "func": "container", 34 | "pred": { 35 | "val": { 36 | "func": "attr", 37 | "name": "variables/visitnumber" 38 | }, 39 | "func": "eq", 40 | "num": 1, 41 | "description": "Visit Number" 42 | }, 43 | "context": "hits", 44 | "description": "AUTO_GENERATED" 45 | }, 46 | { 47 | "container": "hits", 48 | "unit": "day", 49 | "func": "time-restriction", 50 | "count": 1, 51 | "limit": "within" 52 | }, 53 | { 54 | "func": "container", 55 | "pred": { 56 | "val": { 57 | "func": "attr", 58 | "name": "variables/visitnumber" 59 | }, 60 | "func": "eq", 61 | "num": 2, 62 | "description": "Visit Number" 63 | }, 64 | "context": "hits", 65 | "description": "AUTO_GENERATED" 66 | } 67 | ] 68 | }, 69 | "context": "visitors" 70 | }, 71 | "func": "segment", 72 | "version": [ 73 | 1, 74 | 0, 75 | 0 76 | ] 77 | } 78 | } 79 | ``` -------------------------------------------------------------------------------- /Segments/Returning First Time Visitors.md: -------------------------------------------------------------------------------- 1 | # Returning First Time Visitors 2 | Segment to return all Hits from Visitors who had both their first and second Visit in a given Date Range. Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | 4 | ## Usage examples 5 | * Can be used in a table or graph together with the Unique Visitors metric to show the number of Visitors who had both their first and their second Visit in the selected Date Range. 6 | * Can be used in Retention Metrics 7 | * Can be used to show the percentage of Visitors who were acquired and retained in a given Date Range 8 | * Can be used with the First Time Visits Segment to show the day a User came for the first time and returned later on 9 | 10 | ## Business questions 11 | * How many Users visited my site for the first time and came back? 12 | * How many of the new Users acquired by a campaign came back? 13 | 14 | ## Screenshots 15 | ![Returning First Time Visitors Segment in Adobe Analytics](res/returningfirsttimevisitors2.png) 16 | ![Returning First Time Visitors Segment with First Time Visits Segment in Adobe Analytics](res/returningfirsttimevisitors3.png) 17 | ## Tags 18 | Retention, Customer Journey, Acquisition 19 | 20 | ## Definitions 21 | ### Screenshot of segment builder 22 | ![Segment Builder](res/returningfirsttimevisitors1.png) 23 | ### API definition of segment 24 | ```yaml 25 | { 26 | "definition": { 27 | "container": { 28 | "func": "container", 29 | "pred": { 30 | "func": "and", 31 | "preds": [ 32 | { 33 | "val": { 34 | "func": "attr", 35 | "name": "variables/visitnumber" 36 | }, 37 | "func": "eq", 38 | "num": 1, 39 | "description": "Visit Number" 40 | }, 41 | { 42 | "val": { 43 | "func": "attr", 44 | "name": "variables/visitnumber" 45 | }, 46 | "func": "eq", 47 | "num": 2, 48 | "description": "Visit Number" 49 | } 50 | ] 51 | }, 52 | "context": "visitors" 53 | }, 54 | "func": "segment", 55 | "version": [ 56 | 1, 57 | 0, 58 | 0 59 | ] 60 | } 61 | } 62 | ``` -------------------------------------------------------------------------------- /Segments/Sequential Retained Visitors.md: -------------------------------------------------------------------------------- 1 | # Sequential Retained Visitors 2 | Sequential Segment to return only Hits from the first Visit in a sequence of Visits from Visitors who had two or more Visits in a given Date Range. Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | 4 | ## Usage examples 5 | * Can be used in a table or graph together with the Unique Visitors metric to show the number of Visitors who came for the first time of a sequence of Visits in a given Date Range and came back later. 6 | * Can be used in Retention Metrics 7 | * Can be used to show the percentage of Visitors who were retained in a given Date Range but acquired on a given date. 8 | 9 | ## Business questions 10 | * How many Users visited my site on a given date and came back later? 11 | 12 | ## Screenshots 13 | ![Sequential Retained Visitors Segment in Adobe Analytics](res/sequentialretainedvisitors2.png) 14 | 15 | ## Tags 16 | Retention, Customer Journey, Sequencing 17 | 18 | ## Definitions 19 | ### Screenshot of segment builder 20 | ![Segment Builder](res/sequentialretainedvisitors1.png) 21 | ### API definition of segment 22 | ```yaml 23 | { 24 | "definition": { 25 | "container": { 26 | "func": "container", 27 | "pred": { 28 | "func": "and", 29 | "preds": [ 30 | { 31 | "func": "container", 32 | "pred": { 33 | "val": { 34 | "evt": { 35 | "func": "event", 36 | "name": "metrics/visits" 37 | }, 38 | "func": "total" 39 | }, 40 | "func": "ge", 41 | "num": 2, 42 | "description": "Visits" 43 | }, 44 | "context": "visitors", 45 | "description": "Simple Retained Visitors" 46 | }, 47 | { 48 | "func": "container", 49 | "pred": { 50 | "func": "without", 51 | "pred": { 52 | "func": "container", 53 | "pred": { 54 | "func": "sequence-prefix", 55 | "stream": [ 56 | { 57 | "func": "container", 58 | "pred": { 59 | "evt": { 60 | "func": "event", 61 | "name": "metrics/visits" 62 | }, 63 | "func": "event-exists", 64 | "description": "Visits" 65 | }, 66 | "context": "visits" 67 | }, 68 | { 69 | "func": "container", 70 | "pred": { 71 | "evt": { 72 | "func": "event", 73 | "name": "metrics/visits" 74 | }, 75 | "func": "event-exists", 76 | "description": "Visits" 77 | }, 78 | "context": "visits" 79 | } 80 | ], 81 | "context": "visitors" 82 | }, 83 | "context": "hits" 84 | } 85 | }, 86 | "context": "hits", 87 | "description": "Sequential Retained Visitors" 88 | } 89 | ] 90 | }, 91 | "context": "hits" 92 | }, 93 | "func": "segment", 94 | "version": [ 95 | 1, 96 | 0, 97 | 0 98 | ] 99 | } 100 | } 101 | ``` -------------------------------------------------------------------------------- /Segments/Simple Retained Visitors.md: -------------------------------------------------------------------------------- 1 | # Simple Retained Visitors 2 | Segment to return all Hits from Visitors who had two or more Visits in a given Date Range. Created by [frederikwerner](https://github.com/frederikwerner) for [fullstackanalyst.io](https://www.fullstackanalyst.io/?r=g) 3 | 4 | ## Usage examples 5 | * Can be used in a table or graph together with the Unique Visitors metric to show the number of Visitors who came back at least once in the selected Date Range. 6 | * Can be used in Retention Metrics 7 | * Can be used to show the percentage of Visitors who were retained in a given Date Range 8 | 9 | ## Business questions 10 | * How many Users visited my site more than once? 11 | * How many of the Users acquired by a campaign came back? 12 | 13 | ## Screenshots 14 | ![Simple Retained Visitors Segment in Adobe Analytics](res/simpleretainedvisitors2.png) 15 | 16 | ## Tags 17 | Retention, Customer Journey 18 | 19 | ## Definitions 20 | ### Screenshot of segment builder 21 | ![Segment Builder](res/simpleretainedvisitors1.png) 22 | ### API definition of segment 23 | ```yaml 24 | { 25 | "definition": { 26 | "container": { 27 | "func": "container", 28 | "pred": { 29 | "val": { 30 | "evt": { 31 | "func": "event", 32 | "name": "metrics/visits" 33 | }, 34 | "func": "total" 35 | }, 36 | "func": "ge", 37 | "num": 2, 38 | "description": "Visits" 39 | }, 40 | "context": "visitors" 41 | }, 42 | "func": "segment", 43 | "version": [ 44 | 1, 45 | 0, 46 | 0 47 | ] 48 | } 49 | } 50 | ``` -------------------------------------------------------------------------------- /Segments/res/returningfirsttimevisitors1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/returningfirsttimevisitors1.png -------------------------------------------------------------------------------- /Segments/res/returningfirsttimevisitors2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/returningfirsttimevisitors2.png -------------------------------------------------------------------------------- /Segments/res/returningfirsttimevisitors3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/returningfirsttimevisitors3.png -------------------------------------------------------------------------------- /Segments/res/returningfirsttimevisitorswithin1day1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/returningfirsttimevisitorswithin1day1.png -------------------------------------------------------------------------------- /Segments/res/returningfirsttimevisitorswithin1day2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/returningfirsttimevisitorswithin1day2.png -------------------------------------------------------------------------------- /Segments/res/sequentialretainedvisitors1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/sequentialretainedvisitors1.png -------------------------------------------------------------------------------- /Segments/res/sequentialretainedvisitors2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/sequentialretainedvisitors2.png -------------------------------------------------------------------------------- /Segments/res/simpleretainedvisitors1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/simpleretainedvisitors1.png -------------------------------------------------------------------------------- /Segments/res/simpleretainedvisitors2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/frederikwerner/open-adobe-analytics-components/ca3de3deaccfd407ab16090c7f476e48f1a31df1/Segments/res/simpleretainedvisitors2.png -------------------------------------------------------------------------------- /Tags.md: -------------------------------------------------------------------------------- 1 | # Tags 2 | ## Acquisition 3 | * [New User Retention Rate Metric](Calculated%20Metrics/New%20User%20Retention%20Rate.md) 4 | * [New User Retention Rate with time restriction Metric](Calculated%20Metrics/New%20User%20Retention%20Rate%20with%20time%20restriction.md) 5 | * [Returning First Time Visitors Segment](Segments/Returning%20First%20Time%20Visitors.md) 6 | * [Returning First Time Visitors with time restriction Segment](Segments/Returning%20First%20Time%20Visitors%20with%20time%20restriction.md) 7 | 8 | ## Counters 9 | * [Simple Incrementor Metric](Calculated%20Metrics/Simple%20Incrementor.md) 10 | 11 | ## Customer Journey 12 | * [New User Retention Rate Metric](Calculated%20Metrics/New%20User%20Retention%20Rate.md) 13 | * [New User Retention Rate with time restriction Metric](Calculated%20Metrics/New%20User%20Retention%20Rate%20with%20time%20restriction.md) 14 | * [Returning First Time Visitors Segment](Segments/Returning%20First%20Time%20Visitors.md) 15 | * [Returning First Time Visitors with time restriction Segment](Segments/Returning%20First%20Time%20Visitors%20with%20time%20restriction.md) 16 | * [Sequential Retained Visitors Segment](Segments/Sequential%20Retained%20Visitors.md) 17 | * [Simple Retained Visitors Segment](Segments/Simple%20Retained%20Visitors.md) 18 | 19 | ## Regression 20 | * [Linear Regression Line Metric](Calculated%20Metrics/Linear%20Regression%20Line.md) 21 | 22 | ## Retention 23 | * [New User Retention Rate Metric](Calculated%20Metrics/New%20User%20Retention%20Rate.md) 24 | * [New User Retention Rate with time restriction Metric](Calculated%20Metrics/New%20User%20Retention%20Rate%20with%20time%20restriction.md) 25 | * [Returning First Time Visitors Segment](Segments/Returning%20First%20Time%20Visitors.md) 26 | * [Returning First Time Visitors with time restriction Segment](Segments/Returning%20First%20Time%20Visitors%20with%20time%20restriction.md) 27 | * [Sequential Retained Visitors Segment](Segments/Sequential%20Retained%20Visitors.md) 28 | * [Simple Retained Visitors Segment](Segments/Simple%20Retained%20Visitors.md) 29 | 30 | ## Statistics 31 | * [Linear Regression Line Metric](Calculated%20Metrics/Linear%20Regression%20Line.md) 32 | * [Simple Incrementor Metric](Calculated%20Metrics/Simple%20Incrementor.md) 33 | 34 | ## Time Series Analysis 35 | * [Linear Regression Line Metric](Calculated%20Metrics/Linear%20Regression%20Line.md) 36 | * [Simple Incrementor Metric](Calculated%20Metrics/Simple%20Incrementor.md) 37 | 38 | ## Trend 39 | * [Linear Regression Line Metric](Calculated%20Metrics/Linear%20Regression%20Line.md) --------------------------------------------------------------------------------