Stack the number of hits when you click the Share button

Asked 1 years ago, Updated 1 years ago, 119 views

jsp, use Java, Oracle

Currently, we are using Facebook and Kakao Story sharing using the source below. When you click the "Share" button, you want to log hits in the DB I'm trying to hand over the Facebook and Kakao Story classification values to Javadan when clicked or clicked, but I don't know how to use them.

Source

<%if(type.equals("B")){%> /images/fpz/skin01/btn_facebook.png" alt="Facebook" /> /images/fpz/skin01/btn_kakao.png" alt="Kakao Story" />

facebook jsp onclick share kakao-story

2022-09-22 14:54

1 Answers

You can also track click events yourself, but you can also use Google Analytics. When a click event occurs on Facebook and Kakao Story sharing button, you only need to call Google Analytics' event tracking method.

ga('send', 'event', 'Share', 'facebook');

There are also documents in Korean, so please refer to them.

http://thinkmarketing.co.kr/%EC%9D%B4%EB%B2%A4%ED%8A%B8-%ED%8A%B8%EB%9E%98%ED%82%B9%ED%95%98%EB%8A%94-%EB%B2%95-ga-%EC%BD%94%EB%93%9C-%ED%99%9C%EC%9A%A9/


2022-09-22 14:54

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.