Instagram User
Analytics
➢ Project Description :
Instagram User Analytics is mainly focused on the analysis of users who
are using this platform. It’s about making the strategies to enhance the user
engagement on application. The aim of the project is to perform in-depth
analysis of user engagement process with the Instagram which helps them to
launch better feature for the platform. We need to work on data to decide some
insights for marketing and perform queries to analyse the data with respect to
find the solutions of following conditions : -
• Rewarding Most Loyal Users.
• Remind Inactive Users to Start Posting.
• Declaring Contest Winner
• Hashtag Researching
• Launch AD Campaign
• Providing average time of user posts on Instagram regarding user
engagement.
• Bots & Fake Accounts.
➢ Approach :
We used SQL (Structured Query Language) in order to execute this project.
First, we needed to create database. After creating database we need to create
the tables and insert the data into table which have been provided by Trainity’s
Dataset. And by using these data we executed queries for finding the solutions
of above conditions. Various SQL concepts were used like sorting, combining two
tables with the help of joins, where conditions, distinct and limit to get the data
insights.
➢ Tech – Stack Used :-
MySQL Workbench v8.0.31 was used during whole project execution in
order to perform query operations.
➢ Project Insights :
We got the details of user engagement by performing following queries
and concluded that we need to keep track on interaction of users to provide
them better experience & success of application.
A. Marketing –
1. Rewarding Most Loyal Users :
People who have been using platform for longest time are
Query :
Select * from users
order by created_at
limit 5;
Conclusion : So these are the above 5 oldest users of the Instagram.
2. Remind Inactive Users to Start Posting
Query :
SELECT u.username
FROM users u
LEFT JOIN photos p ON u.id = p.user_id
WHERE p.user_id is null;
Conclusion – These are the user who have
never posted a single photo on Instagram.
3. Declaring Contest Winner
Query :
select p.user_id, u.username as Winner_name, count(l.photo_id) as
most_likes, l.photo_id
from likes l
join photos p on l.photo_id = p.id
join users u on p.user_id = u.id
group by photo_id
order by count(photo_id)
DESC
LIMIT 1;
Conclusion –
The Winner of the contest of “Most Liked Photos is Zack_Kemmer93 with
total no. of 48 likes.”
4. Hashtag Researching :
Query :
select ptag.tag_id, t.tag_name as hashtags, count(photo_id)
from photo_tags ptag
inner join tags t on ptag.tag_id = t.id
group by tag_id
order by count(photo_id) desc
limit 5;
Conclusion :
The Top 5 most commonly used hashtags are : Smile, beach, party, fun,
concert.
5. Launch Ad Campaign :
Query –
select dayname(created_at)as Day, count(id)
from users
group by dayname(created_at)
order by count(id) DESC;
Conclusion – Thursday & Sunday are the two days in a week on which most
users register.
B. Investor Matrics :
1. User Engagement –
Query –
SELECT count(distinct photos.id) / COUNT(DISTINCT users.id) as Avg_Post,
max(users.id) as Total_Users, max(photos.id) as Total_Posts
FROM users
LEFT JOIN
photos ON users.id = photos.user_id;
Conclusion : 2.57 times average user posts on Instagram.
Total number of photos on Instagram are 257.
Total number of Users are 100.
2. Bots & Fake Accounts :
Query –
SELECT likes.user_id, users.username, count(user_id) as like_count
FROM likes
JOIN users ON likes.user_id = users.id
GROUP BY user_id
HAVING COUNT(photo_id) = (
SELECT COUNT(*) FROM photos
);
Conclusion – There are 13 Bots who
have liked all the photos on the site
➢ Result :-
This Project has helped me to understand how data can be relevant to
businesses and used to keep track on users by analysing it. It helps me to
achieve the target that we decided to work on. In this process, I learnt a lot
more about SQL & how to create the database, query the database for getting
insights relevant for the product team.
It has taught me how to manage data and how to obtain important
information from it in order to make changes just by closely analysing and
working with data.