How to add Sequence tag in C++

I want to add tag on Track by C++ code;
so the condition is when I have added actor source to take recorder, then I hope I could add track tag in subsequence.
the result will be, I add actor source ,then I use my function to add tag, then I pressed record button, then the sequence finished with tag added.