Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
so I have a shopify website. And shopify sometimes give me a visitor log kind of like this:
"A user from has visited your website,
First page visited: homepage (22 seconds)
About us (1 minute)
Product page (2 minutes)"
I was wondering how I would go about creating something similar to this in php/js.
Thanks in advance!
You can instead use Google Analytics, it has in depth analytics on visitors. Its just about embedding JS code in your page and you're good to go. If you build your own code in any language, I'm pretty sure you will end up writing tonnes of codes.
To answer your question,
1.Create a web socket connection from your page to backend.
2.Pass event codes like clicks, refresh, session ids etc on user actions. Your JS can fire them up with an active web socket connection. It is pretty much light weight.
To store this information, I would suggest to use NoSql.
Hope this helps!
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm working with PHP and I want to scrape some data from any website. But I have a problem. I scrape data but these items number are 48. But I know that page has 11K items. Rest of datas extend when you scroll and you get new bunch of datas (48 items).
I'm scraping with simple_html_dom. How can I manipulate scroll and get data ?
Thanks! :)
Sounds like the missing data is loaded via ajax.
Check the Network tab in the Developer Console (by pressing F12). Take a look at the URL which is being called (and the response), and edit it to your needs. Then call this URL instead of the one you are taking now.
It is impossible by this way.
But if you need to scrap this data you can send requests to endpoints which return lazily loaded data. You must research js code of target site.
p.s.
If you want to use really hard approach, you can research browser emulating.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I had searched by google and this forum-search and I didnt get any about this so I propose a new topic: WordPress with the ability to fight with Ad-Blocker.
I am not an IT guy (subsea engineer) but I am having website with about 100 - 200 unique visitor/day now (according to adsense) as hobby (1%-4% using ad-blocker - I am lucky to have these ~97% my visitors).
I just learn that ad-block users are about 300 mil and it is a huge problem to big publisher (they earn money from ads). Ad-blocker using bandwith, upload data to their server and some (one of them - I expect more of them) sell the data as anons.
In accordance to the above idea,
I have a question as a-non IT guys, is there a way to make WordPress to tackle ad-blocker (auto)?
It may be a way to disarm ad-blocker. My website is like my home/house. You/Visitors can visit but please consider the owner.
No from what I can tell, it keeps a list of servers which are used to serve advertisements. Whenever you visit any website, the web browser has to fetch the components from the various servers. Adblock simply blocks the connections to any item on its list of ad servers, thus blocking all or most ads. The list of servers has to be updated ever so often which it does in the backend.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Well im working on a small php script and i want to make a test to see if the visitor is logged to facebook in his computer using php.
I want to do it in these way:
If (USER IS CONNECTED){echo "yes";}else{echo "no";}
Is it possible? if yes how can i do it ?
There is no documented way to achieve this. The JS is there for a reason (AJAX requests).
The article you're referring to is exploiting redirects after login, and doesn't even work (fails to recognize you're logged into Twitter). Something that starts with "I found a way to abuse" shouldn't be taken into consideration.
That's unethical, it exploits a loophole that will be fixed sooner or later, and I call it cracking.
Why would you need this information anyhow?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I know how to read and parse XML with PHP, but is there a way to make it auto advance through pages of XML data automatically? I work for a TV station that is featuring open houses via a real estate xml feed and need to show one or two houses at a time for a half hour without requiring someone to sit there and advance the pages themselves. Any thoughts would be appreciated!
You could have PHP output the necessary JavaScript to redirect to the next page.
Here's how to redirect to a new page: How can I make a redirect page in jQuery/JavaScript? combine that with setTimeout() to add a delay.
I'm not sure whether I would rely on this for a live TV feed, though - I'd be too scared of the embarrassment of the browser crashing, or an error popping up....
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I hope you're having an awesome day.
Today I wanted to implement a blog on my site, write it on bloggr and when I post it, feed it to mysite.com/index.html What would I need to be able to accomplish this! Help would be greatly appreciated!
I was searching around blogger and ended up in a configuration of it,
1st. I get asked for my domain.
Then I have to replace the CNAMES...
-the blog just redirects to my domain with bloggr style...I want the blog to be displayed on one blog.mydomain.com/post-youre-watching
I also want a div with the feed of the last 3 entries(despite the author)...How can I accomplish this? You guys know anywhere where I could find information on how to do this? If so, what information(or language) do I need to learn?
If you want to present the content on your site (rather then making your hostname point to Blogger) then you'll need to actually put it on your site.
The simplest way would be to periodically pull the data from the Atom or RSS feed hosted by Blogger and store the content in a database on your server.
You can then query it with your own server side code to get whichever combinations of data you desire.