WeChat development generates a QR code with Parameters

Source: Internet
Author: User
Generate a two-dimensional code with parameters in the promotion channels in the official documentation. The document says {code...} generate a two-dimensional code with parameters in the promotion channels in the official documentation.

When a user scans a QR code with a scene value, the following two events may be pushed: if the user has not followed the public number, the user can follow the public number, after the event is followed, the event with the scene value will be pushed to the developer. If the user has followed the public account, the user will automatically enter the session after scanning, and the event with the scene value will be pushed to the developer. The scene value is in the data that POST when generating the QR code see http://mp.weixin.qq.com/wiki/index.php for details? Title = % E7 % 94% 9F % E6 % 88% 90% E5 % B8 % A6 % E5 % 8F % 82% E6 % 95% B0 % E7 % 9A % 84% E4 % BA % 8C % E7 % BB % B4 % E7 % A0 % 81 how can this scenario value be used?

Reply content:

Generate a two-dimensional code with parameters in the promotion channels in the official documentation, which writes

When a user scans a QR code with a scene value, the following two events may be pushed: if the user has not followed the public number, the user can follow the public number, after the event is followed, the event with the scene value will be pushed to the developer. If the user has followed the public account, the user will automatically enter the session after scanning, and the event with the scene value will be pushed to the developer. The scene value is in the data that POST when generating the QR code see http://mp.weixin.qq.com/wiki/index.php for details? Title = % E7 % 94% 9F % E6 % 88% 90% E5 % B8 % A6 % E5 % 8F % 82% E6 % 95% B0 % E7 % 9A % 84% E4 % BA % 8C % E7 % BB % B4 % E7 % A0 % 81 how can this scenario value be used?

The scenario id is a digital id. You can call the database to determine,
For example, you need to place a scene QR code in different parts of the country. If you use the area code as the scene id, when the user scans the scene QR code in Shenzhen, the server will return 755 to you, you will know that this new user is from Shenzhen.

For example, a two-dimensional code with different scenario values is placed on each page to differentiate the page on which users scan more people.
You can also group users based on the scenario values. You can send specific messages to group users.

In fact, it is very simple. The scenario value is defined in your own system for distinguishing different sources. For example, a QR code needs to be used for promotion on the main site, or, you can call different scene values to generate the corresponding QR code on a special activity page. Then, you can use the scene values to focus on source attacks. This method is flexible.

Now each of my users needs a unique QR code to help me count the number of people who share their concerns. There are only 100000 permanent QR codes, and temporary QR codes have time restrictions. What can I do?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.