Check secret when publish and get stats