AI-assisted integration (Beta)
Use AI assistance to speed up the integration process.
If you have any questions regarding the integration, let us know by using the Contact Us
form. We will also greatly appreciate your feedback.
Please add AI INTEGRATION when submitting your request.
We created this manual for Cursor AI code editor but you can try using other AI coding agents that can access all of application code files.
Preparation and prompt
Get Unity Integration Guide File
Download the Unity Integration Guide File and add it to your Unity project folder.
We recommend creating a folder called docs
and placing the guide inside it. This ensures the AI coding agent can easily access and use it during analysis.
Open your AI-agent, and select your Unity project folder. The agent will begin indexing all project files, including the markdown guide. Wait a few moments until indexing is complete.
Create prompt
Create a clear and effective prompt for the AI-agent. The prompt should:
Assign the AI a role (like "You are a product engineer").
Specify your goal: integrate DevToDev events properly.
Reference the guide using
@devtodev_unity_integration_guide.md
.
Copy and paste the promt text into the AI-agent chat window.
You can use our prompt as an example.
Add references to integration guide
Attach the guide file inside the prompt. You can do this in two ways:
Find all the guide mentions in the prompt and delete that placeholder text. Then, drag the file from the
docs
folder into the chat window. The AI-agent will automatically recognize and link the file.Alternatively, type
@
and start typing "devtodev" — the agent will suggest the guide file. Usually it is at the top of the list.

Now click Send
and let the AI coding agent generate the integration.
It will:
Analyze your codebase
Understand game logic
Suggest where and how to insert DevToDev analytics events.
Events generation
Check and review the list of events generated by the AI-agent. You can edit the list by removing the unnecessary or duplicate events. You can also ask the AI to revise its suggestions.
After you have finished reviewing and modifying the suggested events file, you can proceed to the next step of integration.
The AI-agent may then generate a new class — usually something like AnalyticsManager
— to send events to Devtodev.
Further integration
The coding agent might show some errors if Unity has not recompiled yet. Switch to the Unity Editor and wait for it to finish compiling. Once done, the errors in AI-agent will disappear.
The AI must not change your original game logic.
It may add analytics calls (like DTDAnalytics.CustomEvent(...)
), but should never modify player behavior, game flow, or state handling.
If something looks wrong — ask the AI-agent to revise it.
After generating the integration, the AI-agent will also produce a documentation file (like ANALYTICS_SETUP.md
).
It describes:
Where events were added
How to use the generated
AnalyticsManager
classWhat next steps are required to finish setup.
Follow that instruction carefully to complete your devtodev analytics integration properly.
Last updated
Was this helpful?