Facebook-Instagram api is missing metrics from /stories/insights: actions( sticker taps, swipe ups) & if the story is made up of multiple media - instagram-graph-api

The instagram app allows you to see the following metrics for /story/insights: (notably interactions: swipe and sticker taps) see image
Meanwhile the facebook instagram api only gives access to metrics: impressions, reach, taps_forward, taps_back, exits, & replies.
reference here
It is not giving access to missing data on the story/insights endpoint, how would one go about accessing?
As well, if a story is made up of multiple images/video/media, say 10 panes, how does one separate the metrics per pane within a story?

Related

Is it possible to use the information from a single cell in Google Sheets to automatically update the progress bar on a Squarespace website?

I have a progress bar on my Squarespace website that is made with Bootstrap. I store sales information in a Google Sheet. On the site, I have a sales goal that I am trying to reach, so for the sake of example, $2000. I would like the progress bar to update based on the number that is in the Google Sheet. I already have the Google Sheet adding up all of the amounts and doing the math to determine the percentage, I just need that percentage to be displayed in the progress bar and to automatically update.
Essentially I want to make an in-house version of Kickstarter.
To automatically retrieve data from a Google Sheet you can use the Sheets API, specifically you can use the spreadsheets.values.get method.
To access this API on your account you will also need to also create a GCP project to set up OAuth access and build an app that connects to the API through this project.
I'm no expert on Squarespace, but while they do seem to have some connection with Google Workspace, it seems limited to creating an account, not integrating their APIs, so you'll probably need to use their developer platform to build the app yourself.
All in all, it will take some work and development hours to automate this. Unless you plan to extend your website's functionality in the future and include more of the Google APIs in it, you're probably better off manually updating this progress bar for the time being.

Making Google direct users to region-specific website or subdomain

I have a good, short website name like mysite.fr.
It's a website for my real shop (not an online shop).
I have 2 shops. These shops are located in 2 different cities, relatively far away from each other.
I could
1) make one website with 2 subdomains like
paris.mysite.fr
marseille.mysite.fr
2) make 2 new domains like
mysite-paris.fr
mysite-marseille.fr
But that would mean that I can't use my great, short URL anymore.
If option 1 is preferred, I would like to ask how I could properly teach Google what to show each Google Search user. I think it's contraproductive if I have to ask the user to choose the correct city to get to the appropriate shop.
I know that this is possible when using Google Ad campaigns, but I don't know of a way to do that for the common Google search.
Or is option 2 preferred anyways because option 1 is too error-prone?
Thank you.
There are many solutions you could use from the top of my mind I'm thinking about this flow.
First you need the user address:
Could be based on user input (asking for his address) in a text box like the typical food delivery landing page
Could be based on some "plugin" like google maps geolocation that tells you which is the place he is connecting from (usually it tells you street and such)
Then you need to basically locate to which store he is closer to
Then you need to decide which URL solution to use.
[Proposal] You could also move it to mysite.fr/paris or mysite.fr/marseille (sometimes this is better seo speaking, and also simpler when it comes to management) and you keep that amazing site name as the main protagonist as you were stating
Then you need to basically redirect him to the page to the store he was closer to.
In any case, I've been working in several sites that had that "change items based on address logic" and you can PM me for more info :)
Also there are ways in google Adwords in which you can basically put an advertisement only for certain keywords, regions and such, and in that case that is the option you are looking for. You should just create 2 rules, (one per region) and basically just display the adds to the people that are inside the area. This is an example of how the configuration you should put looks like in google Adwords. (It's really simple)
And this is how the add would look like in the google search or other channels depending on the target you select
See my LinkedIn if you want to contact me https://www.linkedin.com/in/alejandro-vales/
I would suggest the first way you mentioned and I guess you could use Radius around a location in Google Ads:
Radius targeting (also known as proximity targeting or "Target a radius") allows you to choose to show your ads to customers within a certain distance from your business, rather than choosing individual cities, regions, or countries.
Selecting a radius
When you target a radius, it's worth keeping in mind that selecting a small radius could mean that your ads might only show intermittently or not at all. That’s because small targets might not meet our targeting criteria.
From the page menu on the left, click Locations.
Click the name of the campaign you wish to edit.
Click the blue pencil icon, then select Radius.
In the search box, enter the address of the location you'd like to use for the center of the radius. Enter the radius that you'd like to target and select a unit of measurement from the drop-down menu.
Check the map to make sure you're targeting the correct area. When you're ready, click Save to add the radius target.
Click Save.
The documentation can be found here.
A Complete tutorial :The Complete Guide to AdWords Location Targeting.

How is Instagram's or Facebook feed works in iOS

I'm building an iOS client for a new social network service based on music. It will have a part where user will interact with a 'feed' of news. What is the most convenient approach in building this feed? Should I ask a server for a, like 20 last posts or so? And when user scrolls to the end of first 20 posts I should ask for another 20? Any help appreciated.
What you're looking to do is normally referred to as pagination.
On the back end the data is broken up into chunks. The iOS client will them make some GET request like
www.myAPI.com/feed?page=1
to get the initial chunk of 20 items. Then before the user finishes scrolling to the bottom make another call
www.myAPI.com/feed?page=2
and merge and append results to the tableview.
If you're interested in how Facebook creates such fast tableview consider looking into: https://github.com/facebook/AsyncDisplayKit

How to get images from instagram with multiple hashtags?

In my iPhone app, I am trying to get images from INSTAGRAM with multiple HASHTAGS. I can able to get images with a single hashtag using following url :
https://api.instagram.com/v1/tags/CRICKET/media/recent?client_id=API_KEY.
Is there any way to get images with multiple hashtags like CRICKET, FOOTBALL at a time instead of making two calls.
Or Is there any out side API's avialble with this feature?
Please help me in this requirements.
Thanks in Advance.
I'm going to say no. An API spec is entirely up to the company that owns the website (Instagram). So in order to query two tags, they would have to build that into their server as a feature.
You could create your own intermediary server that your iOS app connects to, however, if you really want just one API call on the iOS device.
iOS -> Your server -> makes two calls, one for each tag -> Instagram's server

Good third-party analytics for tracking page views through URL

I have users in my app, and to put it simple, each user has many pictures. These pictures are viewed somewhere else - not on my website (my website is only for managing them - creating, deleting, showing views stats etc). On the other websites they are shown simply like so:
<img src="http://mywebsite.com/mypicture_132.png" />
And each time someone opens the image I need to gather some analytics, like:
- http referrer
- IP of the viewer
- time the picture was viewed
And then show it to the user on my website.
I was doing it all on my side (by simply saving every image view it to database), but now the servise is too big to maintain this data (that's like hundreds of records per day for every picture, times 50-70 pics per user, lots of data). So I'm thinking to find some powerful external service that can do that for me.
Maybe something like http://goo.gl (as it has pretty good stats per day/week/month/year, charts, everything is stored on Google servers, etc). But that one should be attached to gmail account, and I also don't think it supports simple export of that data. I also need to be able to get total stats for selected pictures, so that user doesn't have to click on each of them individually. Main thing is I want someone else to record and store the data. Don't mind paying a reasonable price.
Do you know any services like this?
It turned out that Google has a Url Shortener API that does just what I need.

Resources