<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by GoTradie on Medium]]></title>
        <description><![CDATA[Stories by GoTradie on Medium]]></description>
        <link>https://medium.com/@gotradie?source=rss-d4e10af6ad80------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ecKV-FqeEzARk71CTt2C-Q.png</url>
            <title>Stories by GoTradie on Medium</title>
            <link>https://medium.com/@gotradie?source=rss-d4e10af6ad80------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 19:42:02 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gotradie/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Enabling Google Analytics]]></title>
            <link>https://medium.com/@gotradie/enabling-google-analytics-fc633625ca0e?source=rss-d4e10af6ad80------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc633625ca0e</guid>
            <category><![CDATA[gotradie]]></category>
            <category><![CDATA[product-led-startup]]></category>
            <category><![CDATA[google-analytics]]></category>
            <dc:creator><![CDATA[GoTradie]]></dc:creator>
            <pubDate>Wed, 08 Feb 2023 10:05:29 GMT</pubDate>
            <atom:updated>2023-02-08T23:50:53.869Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="https://medium.com/@tharindugimras/enabling-google-analytics-c64c0f5c8bfd"><em>https://medium.com</em></a><em> on February 8, 2023.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WZkrF00NqYjV4Bhc.jpeg" /></figure><p>In this article, I’m going to give a simple explanation of how I applied analytics techniques to the GoTradie applications. Also, problems that I have faced and what are the plants that I’m planning to do in the improvements in this area for GoTradie applications.</p><p>Collecting data from the users is essential thing when comes to maintaining and updating websites or mobile apps according to user interactions and user preferences. In GoTradie that’s the main reason for applying data analytic techniques for our applications.</p><p>There are many tools and methods when comes to applying data analytics to an application. When considering using analytics we considered factors like <strong>ease of implementation, accuracy, scalability, and customization ability</strong>. When considering that we used google analytics to get the data that we needed because we saw that it have all those features.</p><p>Here we needed to gather analytical data about users’ behavior when using GoTradie’s web and mobile applications. Also need to mention that we had <strong>three types of signup ways</strong> in our web application.</p><ol><li><strong>Normal signing</strong> — This is done by entering user data into the signup form.</li><li><strong>By claiming businesses </strong>— In here user needs to have an invitation link by a user who has created a business(account) in the GoTradie app or web application.</li><li>T<strong>he Prometheus admin portal </strong>— In here user gets the claim business link (invitation link) from the admin portal named Prometheus.</li></ol><p>So we had to implement analytics support to each signup method to get more accurate data that wanted. So these are the details we needed by implementing the analytics to the mobile and web applications.</p><ul><li><strong>Users</strong> ( Each according to all the platforms, by mobile and by web app)<br>- How many joined in the last 7 days, 14 days, 1 month, etc<br>- Total number of users</li><li><strong>Daily Active Users(DAU) and Monthly Active Users(MAU).</strong> ( Each according to all the platforms, by mobile and by web app)<br>- All the users by phone number of the user.<br>- Drilled down by Business.<br>- Drilled down by City.<br>- Drilled down by the trade.<br>- Drilled down by user type.<br>- Drilled down by user type. (Owner, Admin, Member, etc.)</li><li><strong>Posted clips count.</strong><br>- Drilled down by users.<br>- Drilled down by businesses.</li><li><strong>Sent messages count. </strong><br>- Drilled down by users.<br>- Drilled down by businesses.<br>- Drilled down by day.</li><li><strong>To-Do lists creation count.</strong><br>- Drilled down by users.<br>- Drilled down by businesses.<br>- Drilled down by day.</li><li><strong>Tasks lists creation count.</strong><br>- Drilled down by users.<br>- Drilled down by businesses.</li></ul><p>To get these pieces of information we implemented some matrics. These are as follows.</p><p>Also not only that we used dimensions to sort out and segment our data. Those are…</p><ul><li><strong>phone_number</strong>( This is the user’s phone number. So we used this to identify the user)</li><li><strong>org_id</strong>( In long form organization ID. Which means the business ID)</li><li><strong>Date</strong></li></ul><p>So after using google analytics we needed to show our dashboards in a clear way to the users who views our dashboards. For that, we had two options.</p><ol><li><strong>Google Analytics exploration section.</strong></li><li>Using <strong>Looker Studio</strong> (Google Data Studio in the past).</li></ol><p>When considering those two options we saw that using there are some advantages of using Google Looker Studio over the Google Analytics exploration section. <strong>Able to create user-convenient dashboards, more control in the dashboards, and customization ability</strong> among them. That’s the reason behind choosing Google Looker Studio over the Google Analytics exploration section to show metrics that we got from using Google Analytics.</p><p>In the Google Looker Studio, we organized our dashboards in a convenient way. First <strong>rather than creating all the dashboards on the same page in the google looker studio we created five pages for that</strong>. Dashboards and pages which we have created are mentioned below,</p><ol><li><strong>Overview.</strong><br>- All users with phone number.<br>- All users with company ID.</li><li><strong>Users’ login and signing behavior.</strong><br>- Total users, Active users in mobile app and web app.<br>- Total users, Active users in the mobile app.<br>- Total users, Active users in the web app.<br>- Active users (last 7 days).<br>- Active businesses (last 7 days).</li><li><strong>User signups.</strong><br>- Users signup via all platforms.<br>- Users signup via the mobile app.<br>- Users signup via the web app (Normal + Claim).<br>- Users signup via the web app (Claim).<br>- Cumulative users signup via all platforms.<br>- Cumulative users signup via the mobile app.<br>- Cumulative users signup via the web app (Normal + Claim).<br>- Cumulative users signup via the web app (Claim).</li><li><strong>Messages and clips.</strong><br>- Messages count by each user.<br>- New clips count by each user.<br>- Messages count by each day.<br>- New clips count by each day.</li><li><strong>To-Do lists and Tasks.</strong><br>- To-Do lists creation count by each user.<br>- Tasks creation count by each user.<br>- To-Do lists creation count by each day.<br>- Tasks creation count by each day.</li></ol><p>Challenges always happen when doing something. When implementing google analytics there were some challenges that we had to face. When <strong>considering the accuracy of the analytics</strong>, we had to face a very huge problem. <strong>When getting the total users</strong>, we had an issue getting <strong>the total users to count as more than the expected count (actual count).</strong> There were several reasons behind that issue.</p><ul><li><strong>Users log in from different devices.</strong></li><li><strong>Users log in from different browsers.</strong></li><li><strong>Users clearing cache after using the application.</strong></li></ul><p>So this happens because in google analytics, <strong>google stores a cookie in the cache to detect the user. </strong>So when a user comes to the site on different devices or from different browsers <strong>the cookie data get changed.</strong> Also, the same thing happens when clearing the cache of the browser. Because of that, we needed to implement <strong>a way to detect unique users</strong> who are coming to the website. For that, we found a way to detect unique users <strong>by sending a unique user ID</strong> after users signup or log in. When a user gets signup for the first time when a user gets logged in a <strong>userID will be sent to google analytics.</strong> So from that google analytics is able to detect the unique users in our application<strong> when a user changes their devices or browsers and even when they clear their cookies.</strong></p><p>So as the next step is that we hope to get <strong>more accurate</strong> and <strong>deep analytical data</strong> by using deep data analytical methods. For that as a deep data analytical method, we are planning to use <strong>Twilio Segment with Amplitude analytics.</strong> So by using Twilio Segment, we can collect user interaction data <strong>from multiple platforms</strong>, and with the support of Amplitude analytics, we <strong>can get the required analytical data.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc633625ca0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hosting Secured, Cache Enabled Image Server on AWS]]></title>
            <link>https://medium.com/@gotradie/hosting-secured-cache-enabled-image-server-on-aws-e96b7db4ffe0?source=rss-d4e10af6ad80------2</link>
            <guid isPermaLink="false">https://medium.com/p/e96b7db4ffe0</guid>
            <dc:creator><![CDATA[GoTradie]]></dc:creator>
            <pubDate>Wed, 03 Aug 2022 08:05:54 GMT</pubDate>
            <atom:updated>2022-08-03T08:53:35.526Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Originally published at </em><a href="https://medium.com/@mmkdissa/hosting-secured-cache-enabled-image-server-on-aws-d54abc3b41d5"><em>https://medium.com</em></a><em> on August 3, 2022.</em></p><p>At GoTradie, we are building capabilities to manage large volumes of media contents. We want to deliver a great user experience while applying world class security. We use S3 buckets to store the media contents and we wanted to create static cacheable URLs that enable the media access only through authenticated sessions. This article is about how I built a Cache Enabled Secured Image Server on AWS.</p><p><strong>Image Server Features</strong></p><ul><li>Secured with Cognito Authentication</li><li>Server Side Caching</li><li>Image Fallback with Redirection Rules</li><li>Fully automated via CloudFormation</li></ul><p>With this article I hope to provide most of the important points that you need to follow if you are dealing with the same. We have automated all the things via CloudFormation and Code Build. I have shared the CloudFormation scripts at the end of the article.</p><p><strong>Overall Architecture</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/994/1*vTTgMkMAAUKvair1tmr3gw.png" /></figure><h3>Implementation Tips</h3><ul><li><strong>S3 Bucket Configuration</strong></li></ul><p>You need to create S3 Bucket and permit access only via CloudFront by setting the bucket policy and make sure to block all public access.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/904/0*zVYaMG5f93HknSYZ.png" /></figure><p>In your image server you may store different resolutions of images.</p><p>For that below is a sample S3 Key structure that you can follow</p><p><em>images/xxxxxyyy</em></p><p><em>images-52x52/xxxxxyyy</em></p><ul><li><strong>Lambda Edge Implementation</strong></li></ul><p>Currently AWS supports Lambda Edges only in us-east-1 (North Virginia) region. So you have to create your Lambda Function in that region.</p><p>MediaManagementAuthLamba : This will intercept the CloudFront <strong>viewer-request</strong> and handle the Cognito Authentication. Specific version of this Lambda should be configured to intercept the CloudFront <strong>viewer-request </strong>event.</p><p>You can have your Cognito configured on any other region and authenticate via that.</p><p>Sample Code : MediaManagementAuthLamba</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/613/0*Nf8IisyEWCf9rx0q.png" /></figure><p>MediaManagementAuthLamba — Python Code</p><p>MediaManagementOriginResponseLambda : This Lambda will intercept CloudFront <strong>origin-response</strong> event and redirect to original image if the requested resolution image is not exists at the requested time. We need to avoid caching these responses as the requested resolution images will be stored later. ( We have background process to create different resolution images from original image)</p><p>Sample Code: MediaManagementOriginResponseLambda</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U2JtJzxiDA4_dozh.png" /><figcaption>MediaManagementOriginResponseLambda — Python Code</figcaption></figure><ul><li><strong>CloudFront Configurations</strong></li></ul><p>You need to create CloudFront distribution with <strong>S3 Origin</strong> type and set up <strong>Origin domain</strong> as s3 bucket domain.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*1Fggv14_hr7NjhYX.png" /><figcaption>Origin domain Configurations</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/0*i0VDG9-ucw67nmfn.png" /><figcaption>CloudFront Distribution Origin Settings for S3 Bucket Access</figcaption></figure><p>Then you need to configure function-associations for the above configured behavior.</p><p>You need to intercept <strong>viewer request</strong> with MediaManagementAuthLamba function which we created above to handle Cognito authentication. Here you need to configure the ARN of the specific version of the MediaManagementAuthLamba function.</p><p>You need to intercept <strong>origin response </strong>with MediaManagementOriginResponseLambda function which we created above to handle image redirections. Here you need to configure the ARN of the specific version of the MediaManagementOriginResponseLambda function as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/0*q_0qwg-WU8GeRhcP.png" /><figcaption>CloudFront Distribution Behavior — Function Associations</figcaption></figure><ul><li><strong>Automation via CloudFormation</strong></li></ul><p>Finally its better to automate all above. You can use AWS CloudFormation to automate above all configurations.</p><p>Below you can find the CloudFormation configurations for the CloudFront Distribution, IAM Roles and Lambda Functions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*o-8tdSbbgrCoDdIB.png" /><figcaption>CloudFront Distribution CloudFormation Script</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/0*rhZZOIDuU__E0J6m.png" /><figcaption>CloudFormation Script for Lambdas and Roles</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/632/0*e1hnm67JcxmH-Ot8.png" /><figcaption>CloudFormation Script For S3 Bucket and Bucket Policy</figcaption></figure><p>Thanks for reading. :)</p><p>You can find the source code @</p><p><a href="https://github.com/opengotradie/gt-media-delivery">GitHub - opengotradie/gt-media-delivery</a></p><p><strong>References</strong></p><ul><li>CloudFront Events</li></ul><p><a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-cloudfront-trigger-events.html">CloudFront events that can trigger a Lambda@Edge function</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e96b7db4ffe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Atomic UIs, Microsites and Aggregated Apps — Engineering @ GoTradie]]></title>
            <link>https://medium.com/@gotradie/atomic-uis-microsites-and-aggregated-apps-engineering-gotradie-70c04c8ecd4e?source=rss-d4e10af6ad80------2</link>
            <guid isPermaLink="false">https://medium.com/p/70c04c8ecd4e</guid>
            <dc:creator><![CDATA[GoTradie]]></dc:creator>
            <pubDate>Mon, 25 Apr 2022 10:11:59 GMT</pubDate>
            <atom:updated>2022-08-03T08:57:57.520Z</atom:updated>
            <content:encoded><![CDATA[<h3>Atomic UIs, Microsites and Aggregated Apps — Engineering @ GoTradie</h3><p><em>Originally published at </em><a href="https://medium.com/sajithvim/atomic-uis-microsites-and-aggregated-apps-engineering-gotradie-9c4b35bdcc0d"><em>https://medium.com</em></a><em> on April 25, 2022.</em></p><p>At <a href="https://www.linkedin.com/company/gotradie/">GoTradie</a> we often use the term “Atomic Level User Experiences”. We firmly believe that great products could only be built by focusing on very specific atomic level user interactions with your product. In order to achieve this, we wanted to build a frontend architecture that will be quite modular, reusable and that will have a greater degree of observability. Being a huge fan of microservices architecture, I wanted to use some of the architectural traits of microservices into GoTradie frontends. This is the story of how we built these Atomic UIs and aggregation pipelines to deliver the GoTradie app.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/0*IVVEZibSUTDQDW2e.png" /><figcaption>GoTradie UI Engineering Process</figcaption></figure><p>It all starts with our talented UX designer creating the UI elements and mock screens using <a href="https://www.figma.com/">Figma</a> and his UX design toolkit. These Figma based atomic elements are the starting point for the GoTradie UI engineering process.</p><p>The UI Engineers in GoTradie team break down these Figma designs to smaller elements and build atomic level UI components. We are using React Native and the components that are built are then published to our components library. We are using a tool called <a href="https://storybook.js.org/">storybook.js</a> to browse these UI components. The storybook is setup using <a href="https://www.chromatic.com/">Chromatic</a> which helps us perform visual reviews throughout the components build cycle. The components are built based on an abstraction that we have defined which in return helps us to execute a series of automated tests on every new component. Upon first level approval by UX and Product teams these components are then published to our own NPM private repository.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/214/0*laNOJjmJkedef9Bn.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/0*gVr3_gXd9y2fcbje.png" /><figcaption>Storybook and Reviews Page Chromatic</figcaption></figure><p>All the reusable functional logics and utility functionalities such as authentication, error handling, authorisation, caching etc. are written as separate modules and are published to GoTradie NPM private repository.</p><p>Using the atomic elements, we build the composite UI applications which we call to be microsites. Some of these microsites are fully standalone web based applications while some of them are composite UI components that support direct integrations. Each microsite implements a dedicated functionality of the platform and there could be more than a single page to each microsite. Microsites have their own authentication and authorisation model which is injected with configuration at the time of instantiation. I will discuss about the micro-permissions based access control system that we are using in a future article.</p><p>Each microsite is embedded with the GoTradie observability module that help us capture the micro level interactions with these components by the users. These captured data is fed into our analytics system via a secure channel and we are using this data to build different usage models and make decisions on them.</p><p>I personally take automation across any engineering process very seriously. We have taken some great efforts to fully automate the aggregation and publishing of these individual UI components as well as to build the end application. Our CICD pipeline only takes less than 20 mins to publish a change made to an atomic component to the functional production Android and iOS apps and export them to Firebase and TestFlight. This includes performing various types of tests, at the components level, integration level and at the UAT level and generating some automatically generated release docs before building the Android, iOS and mobile web builds. I will write more about our CICD pipelines in a future article.</p><p>We have taken a lot of efforts building a solid engineering delivery mechanism for frontends at GoTradie. There were few very interesting learnings from this exercise and we came across a quite a few anti patterns too. As part of this we have built a quite a few proprietary modules that can save time for other frontend devs. We are hoping to publish some of the tooling as open source projects in the near future.</p><p>Kudos to my super duper engineering team for working tirelessly to make this a reality.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70c04c8ecd4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>